faad: Make sure that the srcpad has caps before finishing actual audio data

This commit is contained in:
Sebastian Dröge 2012-01-09 14:59:58 +01:00
parent adb4b010ed
commit c849631686

View file

@ -485,7 +485,8 @@ gst_faad_update_caps (GstFaad * faad, faacDecFrameInfo * info)
}
}
if (G_LIKELY (!fmt_change))
if (G_LIKELY (gst_pad_has_current_caps (GST_AUDIO_DECODER_SRC_PAD (faad))
&& !fmt_change))
return TRUE;