mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
videoscale: Fix caps fixating if the height is fixed but the width isn't
This commit is contained in:
parent
58c77eb1b4
commit
fc9de9e0a1
1 changed files with 4 additions and 2 deletions
|
@ -475,10 +475,12 @@ gst_video_scale_fixate_caps (GstBaseTransform * base, GstPadDirection direction,
|
|||
gst_structure_get_int (ins, "width", &from_w);
|
||||
gst_structure_get_int (ins, "height", &from_h);
|
||||
|
||||
gst_structure_get_int (outs, "width", &w);
|
||||
gst_structure_get_int (outs, "height", &h);
|
||||
|
||||
/* if both width and height are already fixed, we can't do anything
|
||||
* about it anymore */
|
||||
if (gst_structure_get_int (outs, "width", &w)
|
||||
&& gst_structure_get_int (outs, "height", &h)) {
|
||||
if (w && h) {
|
||||
guint n, d;
|
||||
|
||||
GST_DEBUG_OBJECT (base, "dimensions already set to %dx%d, not fixating",
|
||||
|
|
Loading…
Reference in a new issue