audiovisualizer: Don't try to sync controller values to invalid timestamp
authorOlivier Crête <olivier.crete@collabora.com>
Tue, 11 Sep 2012 23:41:31 +0000 (19:41 -0400)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 4 Apr 2013 23:43:41 +0000 (00:43 +0100)
ext/libvisual/gstaudiovisualizer.c

index aead4f1..0bb1915 100644 (file)
@@ -1117,7 +1117,8 @@ gst_audio_visualizer_chain (GstPad * pad, GstObject * parent,
       break;
 
     /* sync controlled properties */
-    gst_object_sync_values (GST_OBJECT (scope), ts);
+    if (GST_CLOCK_TIME_IS_VALID (ts))
+      gst_object_sync_values (GST_OBJECT (scope), ts);
 
     GST_BUFFER_TIMESTAMP (outbuf) = ts;
     GST_BUFFER_DURATION (outbuf) = scope->frame_duration;