[gnac] Prevented annoying warnings



commit f9aedafda04c20b02c83adcfd8e5fb951f8fdfb5
Author: Benoît Dupasquier <bdupasqu src gnome org>
Date:   Thu May 20 21:35:38 2010 +0100

    Prevented annoying warnings

 libgnac/libgnac-converter.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libgnac/libgnac-converter.c b/libgnac/libgnac-converter.c
index 18c374f..e74a20f 100644
--- a/libgnac/libgnac-converter.c
+++ b/libgnac/libgnac-converter.c
@@ -1151,10 +1151,14 @@ libgnac_converter_percentage_cb(LibgnacConverter *converter)
 
   static GstFormat format = GST_FORMAT_TIME;
 
-
   priv = LIBGNAC_CONVERTER_GET_PRIVATE(converter);
   item = priv->current;
 
+  if (!GST_IS_ELEMENT(item->pipeline)) {
+    item->timeout_id = 0;
+    return FALSE;
+  }
+
   gst_element_get_state(item->pipeline, &state, &pending_state, 0);
 
   if (state == GST_STATE_PAUSED) 



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