summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2012-09-11 19:41:31 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2012-09-11 19:41:31 -0400
commit77d4a59969a56319fc68609cd7b13a7e1c888dfa (patch)
tree9ac91739dfc1efe766250afb97ad9f13aac9006c
parent1826c126bf05163446d7da73bfbc4f9e21fd7f1f (diff)
audiovisualizer: Don't try to sync controller values to invalid timestamp
-rw-r--r--gst/audiovisualizers/gstaudiovisualizer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/audiovisualizers/gstaudiovisualizer.c b/gst/audiovisualizers/gstaudiovisualizer.c
index 469194b77..2150ecdea 100644
--- a/gst/audiovisualizers/gstaudiovisualizer.c
+++ b/gst/audiovisualizers/gstaudiovisualizer.c
@@ -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;