From: Sebastian Dröge Date: Wed, 11 May 2011 15:35:36 +0000 (+0200) Subject: videoscale: basetransform is now better at trying passthrough, remove workaround X-Git-Tag: 1.19.3~511^2~7682 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc785bade6d95d56fec2f40a0d28f3b4e5ee8c1c;p=platform%2Fupstream%2Fgstreamer.git videoscale: basetransform is now better at trying passthrough, remove workaround --- diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index c49c5b4..2dc8658 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);