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
parent 1826c126bf
commit 77d4a59969

View file

@ -948,7 +948,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;