audiovisualizer: Don't try to sync controller values to invalid timestamp

This commit is contained in:
Olivier Crête 2012-09-11 19:41:31 -04:00 committed by Tim-Philipp Müller
parent 461d58795a
commit 48208c61a8

View 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;