mpeg2dec: do not fail fatally when unlinked

... as _NOT_LINKED was neither tested as fatal before nor complained about.
This commit is contained in:
Mark Nauwelaerts 2011-02-21 13:13:11 +01:00
parent b3c04da6c3
commit 9ccdcda5e6

View file

@ -443,7 +443,8 @@ gst_mpeg2dec_alloc_buffer (GstMpeg2dec * mpeg2dec, gint64 offset,
/* ERRORS */
no_buffer:
{
if (ret != GST_FLOW_WRONG_STATE && ret != GST_FLOW_UNEXPECTED) {
if (ret != GST_FLOW_WRONG_STATE && ret != GST_FLOW_UNEXPECTED &&
ret != GST_FLOW_NOT_LINKED) {
GST_ELEMENT_ERROR (mpeg2dec, RESOURCE, FAILED, (NULL),
("Failed to allocate memory for buffer, reason %s",
gst_flow_get_name (ret)));