mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
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.
This commit is contained in:
parent
f268f2be92
commit
9196c3dcca
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue