From cc785bade6d95d56fec2f40a0d28f3b4e5ee8c1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 11 May 2011 17:35:36 +0200 Subject: [PATCH] videoscale: basetransform is now better at trying passthrough, remove workaround --- gst/videoscale/gstvideoscale.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index c49c5b4694..2dc865871e 100644 --- a/gst/videoscale/gstvideoscale.c +++ b/gst/videoscale/gstvideoscale.c @@ -335,7 +335,7 @@ gst_video_scale_transform_caps (GstBaseTransform * trans, (direction == GST_PAD_SINK) ? "sink" : "src"); ret = gst_caps_copy (caps); - structure = gst_structure_copy (gst_caps_get_structure (ret, 0)); + structure = gst_caps_get_structure (ret, 0); gst_structure_set (structure, "width", GST_TYPE_INT_RANGE, 1, G_MAXINT, @@ -346,7 +346,6 @@ gst_video_scale_transform_caps (GstBaseTransform * trans, gst_structure_set (structure, "pixel-aspect-ratio", GST_TYPE_FRACTION_RANGE, 1, G_MAXINT, G_MAXINT, 1, NULL); } - gst_caps_append_structure (ret, structure); GST_DEBUG_OBJECT (trans, "returning caps: %" GST_PTR_FORMAT, ret); -- 2.34.1