[tracker/tracker-0.8] tracker-extract-gstreamer: Fix pipeline error handling
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] tracker-extract-gstreamer: Fix pipeline error handling
- Date: Thu, 19 Aug 2010 16:12:56 +0000 (UTC)
commit e17727100deb591c7bc1aa9d216db55071962190
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 909c557..f20703c 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -1179,6 +1179,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);
@@ -1187,6 +1188,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]