[gthumb/ext] stop playing the video if the viewer is closed
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext] stop playing the video if the viewer is closed
- Date: Mon, 16 Nov 2009 21:39:20 +0000 (UTC)
commit eac37117e7e26a36ca2c5abaa6e79b1549a3ffc6
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Nov 16 22:38:30 2009 +0100
stop playing the video if the viewer is closed
extensions/gstreamer/gth-media-viewer-page.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/extensions/gstreamer/gth-media-viewer-page.c b/extensions/gstreamer/gth-media-viewer-page.c
index aca37fd..1f19174 100644
--- a/extensions/gstreamer/gth-media-viewer-page.c
+++ b/extensions/gstreamer/gth-media-viewer-page.c
@@ -830,6 +830,9 @@ gth_media_viewer_page_real_hide (GthViewerPage *base)
gtk_ui_manager_remove_ui (gth_browser_get_ui_manager (self->priv->browser), self->priv->merge_id);
self->priv->merge_id = 0;
}
+
+ if ((self->priv->playbin != NULL) && self->priv->playing)
+ gst_element_set_state (self->priv->playbin, GST_STATE_PAUSED);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]