tools/gst-launch.c: Make gst-launch handle LATENCY messages and make it recalculate...
authorWim Taymans <wim.taymans@gmail.com>
Fri, 21 Nov 2008 08:09:00 +0000 (08:09 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Fri, 21 Nov 2008 08:09:00 +0000 (08:09 +0000)
Original commit message from CVS:
* tools/gst-launch.c: (event_loop):
Make gst-launch handle LATENCY messages and make it recalculate the
latency.

ChangeLog
common
tools/gst-launch.c

index 369a9e5..36cb7a5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-11-21  Wim Taymans  <wim.taymans@collabora.co.uk>
+
+       * tools/gst-launch.c: (event_loop):
+       Make gst-launch handle LATENCY messages and make it recalculate the
+       latency.
+
 2008-11-20  Michael Smith <msmith@songbirdnest.com>
 
        * plugins/elements/gstfilesrc.c:
diff --git a/common b/common
index edfb4b4..e4b2fe4 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit edfb4b44ea433b0b83b8a2f27a6e0bcbccdc3f2f
+Subproject commit e4b2fe44724e1c1a6e816ae4fbbae43d7f68f1ef
index 0bc91d2..102da0b 100644 (file)
@@ -549,6 +549,12 @@ event_loop (GstElement * pipeline, gboolean blocking, GstState target_state)
         }
         break;
       }
+      case GST_MESSAGE_LATENCY:
+      {
+        fprintf (stderr, _("Redistribute latency...\n"));
+        gst_bin_recalculate_latency (GST_BIN (pipeline));
+        break;
+      }
       case GST_MESSAGE_APPLICATION:{
         const GstStructure *s;