mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
audiodecoder: Don't assert on pad caps not being set
The decoder might have been de-activated in the meantime (resulting in NULL pad caps). If the decoder really isn't configured, then it will error out further down when checking whether the GST_AUDIO_INFO_IS_VALID() https://bugzilla.gnome.org/show_bug.cgi?id=667562
This commit is contained in:
parent
0cc8445cfa
commit
55f692eff6
1 changed files with 0 additions and 3 deletions
|
@ -834,9 +834,6 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf,
|
|||
gsize size;
|
||||
GstFlowReturn ret = GST_FLOW_OK;
|
||||
|
||||
/* subclass should know what it is producing by now */
|
||||
g_return_val_if_fail (buf == NULL || gst_pad_has_current_caps (dec->srcpad),
|
||||
GST_FLOW_ERROR);
|
||||
/* subclass should not hand us no data */
|
||||
g_return_val_if_fail (buf == NULL || gst_buffer_get_size (buf) > 0,
|
||||
GST_FLOW_ERROR);
|
||||
|
|
Loading…
Reference in a new issue