audiovisualizer: Only fixate pixel-aspect-ratio if the field exists
It's optional.
This commit is contained in:
parent
06aa4e5b68
commit
5e441e2197
@ -812,8 +812,9 @@ gst_audio_visualizer_src_negotiate (GstAudioVisualizer * scope)
|
|||||||
gst_structure_fixate_field_nearest_int (structure, "width", 320);
|
gst_structure_fixate_field_nearest_int (structure, "width", 320);
|
||||||
gst_structure_fixate_field_nearest_int (structure, "height", 200);
|
gst_structure_fixate_field_nearest_int (structure, "height", 200);
|
||||||
gst_structure_fixate_field_nearest_fraction (structure, "framerate", 25, 1);
|
gst_structure_fixate_field_nearest_fraction (structure, "framerate", 25, 1);
|
||||||
gst_structure_fixate_field_nearest_fraction (structure, "pixel-aspect-ratio",
|
if (gst_structure_has_field (structure, "pixel-aspect-ratio"))
|
||||||
1, 1);
|
gst_structure_fixate_field_nearest_fraction (structure,
|
||||||
|
"pixel-aspect-ratio", 1, 1);
|
||||||
|
|
||||||
target = gst_caps_fixate (target);
|
target = gst_caps_fixate (target);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user