videoscale: Fix caps fixating if the height is fixed but the width isn't
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 17 Jul 2010 17:57:00 +0000 (19:57 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 18 Jul 2010 13:44:14 +0000 (15:44 +0200)
gst/videoscale/gstvideoscale.c

index 46170b8..d7656a5 100644 (file)
@@ -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",