From 9196c3dcca74cc2c8e912ac085e65db96f66e16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 8 Apr 2015 20:48:39 -0700 Subject: [PATCH] audiodecoder: Don't get and parse the current srcpad caps We only get here if we don't have any srcpad caps, and we're going to override the GstAudioInfo a few lines below anyway without ever using it if for whatever reason we get caps here. --- gst-libs/gst/audio/gstaudiodecoder.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index ba2ee47118..1c1070dd75 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -1890,12 +1890,6 @@ gst_audio_decoder_negotiate_default_caps (GstAudioDecoder * dec) gint caps_size; GstStructure *structure; - caps = gst_pad_get_current_caps (dec->srcpad); - if (caps && !gst_audio_info_from_caps (&dec->priv->ctx.info, caps)) - goto caps_error; - if (caps) - gst_caps_unref (caps); - caps = gst_pad_get_allowed_caps (dec->srcpad); if (!caps || gst_caps_is_empty (caps) || gst_caps_is_any (caps)) goto caps_error;