audiovisualizer: fixate caps completely
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 24 Jul 2012 10:25:08 +0000 (12:25 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 24 Jul 2012 10:25:08 +0000 (12:25 +0200)
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

ext/libvisual/gstaudiovisualizer.c

index 65005f6..fcea6ab 100644 (file)
@@ -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);