From de129007600e5651f546d60b727f93d900768e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 10 Apr 2018 21:18:11 +0200 Subject: [PATCH] audiovisualizer: Fixate pixel-aspect-ratio to the closest value to 1/1 --- gst-libs/gst/pbutils/gstaudiovisualizer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/pbutils/gstaudiovisualizer.c b/gst-libs/gst/pbutils/gstaudiovisualizer.c index 364c9b00e3..d339d662b1 100644 --- a/gst-libs/gst/pbutils/gstaudiovisualizer.c +++ b/gst-libs/gst/pbutils/gstaudiovisualizer.c @@ -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);