diff --git a/gst/audioconvert/gstaudioconvert.c b/gst/audioconvert/gstaudioconvert.c index 934c3b48d3..dea382ed02 100644 --- a/gst/audioconvert/gstaudioconvert.c +++ b/gst/audioconvert/gstaudioconvert.c @@ -307,8 +307,6 @@ gst_audio_convert_transform_caps (GstBaseTransform * btrans, GstCaps *tmp, *tmp2; GstCaps *result; - result = gst_caps_copy (caps); - /* Get all possible caps that we can transform to */ tmp = gst_audio_convert_caps_remove_format_info (caps); diff --git a/gst/videoconvert/gstvideoconvert.c b/gst/videoconvert/gstvideoconvert.c index 210b8e1310..4b81892a9c 100644 --- a/gst/videoconvert/gstvideoconvert.c +++ b/gst/videoconvert/gstvideoconvert.c @@ -141,8 +141,6 @@ gst_video_convert_transform_caps (GstBaseTransform * btrans, GstCaps *tmp, *tmp2; GstCaps *result; - result = gst_caps_copy (caps); - /* Get all possible caps that we can transform to */ tmp = gst_video_convert_caps_remove_format_info (caps);