mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
monoscope: Fixate pixel-aspect-ratio too and make sure the final caps are completely fixated
Otherwise e.g. this fails with assertions: gst-launch-1.0 audiotestsrc ! audioconvert ! monoscope ! videoconvert ! \ videoscale ! video/x-raw,width=800,height=600 ! ximagesink
This commit is contained in:
parent
7229bfd068
commit
21eb9b49be
1 changed files with 3 additions and 0 deletions
|
@ -255,6 +255,9 @@ gst_monoscope_src_negotiate (GstMonoscope * monoscope)
|
|||
gst_structure_fixate_field_nearest_int (structure, "width", 320);
|
||||
gst_structure_fixate_field_nearest_int (structure, "height", 240);
|
||||
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);
|
||||
|
||||
gst_monoscope_src_setcaps (monoscope, target);
|
||||
|
||||
|
|
Loading…
Reference in a new issue