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
This commit is contained in:
Wim Taymans 2012-07-24 12:25:08 +02:00
parent 9572ec0481
commit cdbd97a43d

View file

@ -703,6 +703,8 @@ gst_audio_visualizer_src_negotiate (GstAudioVisualizer * scope)
gst_structure_fixate_field_nearest_fraction (structure, "framerate", gst_structure_fixate_field_nearest_fraction (structure, "framerate",
scope->fps_n, scope->fps_d); scope->fps_n, scope->fps_d);
target = gst_caps_fixate (target);
GST_DEBUG_OBJECT (scope, "final caps are %" GST_PTR_FORMAT, target); GST_DEBUG_OBJECT (scope, "final caps are %" GST_PTR_FORMAT, target);
gst_audio_visualizer_src_setcaps (scope, target); gst_audio_visualizer_src_setcaps (scope, target);