[snappy] engine: listen for GST_MESSAGE_DURATION



commit 28ee4123320af1fee56149c8a3e4fccbd71f8ed4
Author: Luis de Bethencourt <luis debethencourt com>
Date:   Fri May 4 14:37:51 2012 +0100

    engine: listen for GST_MESSAGE_DURATION

 src/gst_engine.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gst_engine.c b/src/gst_engine.c
index fd81aee..5ed0d4a 100644
--- a/src/gst_engine.c
+++ b/src/gst_engine.c
@@ -482,6 +482,14 @@ bus_call (GstBus * bus, GstMessage * msg, gpointer data)
       engine->queries_blocked = FALSE;
       break;
 
+    case GST_MESSAGE_DURATION:
+    {
+      g_debug ("Gst message duration\n");
+      update_media_duration (engine);
+
+      break;
+    }
+
     case GST_MESSAGE_ERROR:
     {
       /* Parse and share Gst Error */



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