From 9d9d07168fdda15ece0237b76349cefb366d931e Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Wed, 7 Jan 2015 16:53:41 +0000 Subject: [PATCH] glfilter: remove logically dead code Soon after setting two variables to 1, the code checks if their values are different from each other. This would never be true. Removing this. CID 1226443 --- gst-libs/gst/gl/gstglfilter.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c index 19c509b..adc01b1 100644 --- a/gst-libs/gst/gl/gstglfilter.c +++ b/gst-libs/gst/gl/gstglfilter.c @@ -451,18 +451,13 @@ gst_gl_filter_fixate_caps (GstBaseTransform * bt, /* if both width and height are already fixed, we can't do anything * about it anymore */ if (w && h) { - gint n = 1, d = 1; - GST_DEBUG_OBJECT (bt, "dimensions already set to %dx%d, not fixating", w, h); if (!gst_value_is_fixed (to_par)) { - GST_DEBUG_OBJECT (bt, "fixating to_par to %dx%d", n, d); + GST_DEBUG_OBJECT (bt, "fixating to_par to %dx%d", 1, 1); if (gst_structure_has_field (outs, "pixel-aspect-ratio")) gst_structure_fixate_field_nearest_fraction (outs, "pixel-aspect-ratio", 1, 1); - else if (n != d) - gst_structure_set (outs, "pixel-aspect-ratio", GST_TYPE_FRACTION, - 1, 1, NULL); } goto done; } -- 2.7.4