diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-07-24 12:25:08 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-07-24 12:25:08 +0200 |
commit | cdbd97a43d9c2bddaddf951f3dd7397a1d51312b (patch) | |
tree | d29695a3c0ee9755221ae98cc4bf5a355f7a7bab /ext/libvisual | |
parent | 9572ec0481e57de688c9307ec3fad256fee110f9 (diff) | |
download | gstreamer-plugins-base-cdbd97a43d9c2bddaddf951f3dd7397a1d51312b.tar.gz |
audiovisualizer: fixate caps completely
Call gst_caps_fixate() to make sure that the caps are completely fixated before
using them as the final caps in negotiation.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680162
Diffstat (limited to 'ext/libvisual')
-rw-r--r-- | ext/libvisual/gstaudiovisualizer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/libvisual/gstaudiovisualizer.c b/ext/libvisual/gstaudiovisualizer.c index 65005f6d5..fcea6ab0a 100644 --- a/ext/libvisual/gstaudiovisualizer.c +++ b/ext/libvisual/gstaudiovisualizer.c @@ -703,6 +703,8 @@ gst_audio_visualizer_src_negotiate (GstAudioVisualizer * scope) gst_structure_fixate_field_nearest_fraction (structure, "framerate", scope->fps_n, scope->fps_d); + target = gst_caps_fixate (target); + GST_DEBUG_OBJECT (scope, "final caps are %" GST_PTR_FORMAT, target); gst_audio_visualizer_src_setcaps (scope, target); |