[gnac/devel] Prevented annoying warnings
- From: Benoît Dupasquier <bdupasqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnac/devel] Prevented annoying warnings
- Date: Thu, 20 May 2010 20:38:51 +0000 (UTC)
commit 2e21fc4e0e0d6a1a1b64b725fa2dd72c1103f029
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]