audiovisualizer: Fixate pixel-aspect-ratio to the closest value to 1/1

This commit is contained in:
Sebastian Dröge 2018-04-10 21:18:11 +02:00 committed by Tim-Philipp Müller
parent 8a995b9e94
commit de12900760

View file

@ -811,6 +811,8 @@ gst_audio_visualizer_src_negotiate (GstAudioVisualizer * scope)
gst_structure_fixate_field_nearest_int (structure, "width", 320);
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, "pixel-aspect-ratio",
1, 1);
target = gst_caps_fixate (target);