mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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:
parent
9572ec0481
commit
cdbd97a43d
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue