summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Crête <olivier.crete@collabora.com>2012-09-11 19:41:31 -0400
committerTim-Philipp Müller <tim@centricular.net>2013-04-05 00:43:41 +0100
commit48208c61a804f4438fea6cfdb18798965949bcba (patch)
treef702c9cc7586c01acee41b418a5ed577f7f7503e
parent461d58795a636b89eed5c8917c5d39551b07cc34 (diff)
audiovisualizer: Don't try to sync controller values to invalid timestamp
-rw-r--r--ext/libvisual/gstaudiovisualizer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/libvisual/gstaudiovisualizer.c b/ext/libvisual/gstaudiovisualizer.c
index aead4f1bb..0bb191534 100644
--- a/ext/libvisual/gstaudiovisualizer.c
+++ b/ext/libvisual/gstaudiovisualizer.c
@@ -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;