[tracker/gstreamer] tracker-extract-gstreamer: Fix pipeline error handling



commit b64f3371b5e1456e5ef604751eff04125e3dfd2e
Author: Jürg Billeter <j bitron ch>
Date:   Thu Aug 5 12:25:54 2010 +0200

    tracker-extract-gstreamer: Fix pipeline error handling
    
    Fixes NB#181112.

 src/tracker-extract/tracker-extract-gstreamer.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index c5d86fa..940e593 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -1219,6 +1219,7 @@ tracker_extract_gstreamer (const gchar *uri,
 	if (use_tagreadbin) {
 		if (!poll_for_ready (extractor, GST_STATE_PLAYING, FALSE, TRUE)) {
 			g_warning ("Error running tagreadbin");
+			gst_element_set_state (extractor->pipeline, GST_STATE_NULL);
 			gst_object_unref (GST_OBJECT (extractor->pipeline));
 			gst_object_unref (extractor->bus);
 			g_slice_free (MetadataExtractor, extractor);
@@ -1227,6 +1228,7 @@ tracker_extract_gstreamer (const gchar *uri,
 	} else {
 		if (!poll_for_ready (extractor, GST_STATE_PAUSED, TRUE, FALSE)) {
 			g_warning ("Error running decodebin");
+			gst_element_set_state (extractor->pipeline, GST_STATE_NULL);
 			gst_object_unref (GST_OBJECT (extractor->pipeline));
 			gst_object_unref (extractor->bus);
 			g_slice_free (MetadataExtractor, extractor);



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