[gthumb] gstreamer: set the state to NULL before destroying the playbin



commit ecb9b3f7142c8367a22ef1ea101672fea03d04e2
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed Dec 12 13:20:55 2012 +0100

    gstreamer: set the state to NULL before destroying the playbin

 extensions/gstreamer_tools/gth-media-viewer-page.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/gstreamer_tools/gth-media-viewer-page.c b/extensions/gstreamer_tools/gth-media-viewer-page.c
index 423048f..ba7cd88 100644
--- a/extensions/gstreamer_tools/gth-media-viewer-page.c
+++ b/extensions/gstreamer_tools/gth-media-viewer-page.c
@@ -879,7 +879,7 @@ gth_media_viewer_page_real_deactivate (GthViewerPage *base)
 
 	if (self->priv->playbin != NULL) {
 		save_volume (self);
-		gst_element_set_state (self->priv->playbin, GST_STATE_READY);
+		gst_element_set_state (self->priv->playbin, GST_STATE_NULL);
 		gst_object_unref (GST_OBJECT (self->priv->playbin));
 		self->priv->playbin = NULL;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]