jasperdec: don't fail hard on decoding error

don't post an error and return GST_FLOW_ERROR on a simple decoding error. We can
just resume and continue decoding the next image.
This commit is contained in:
Wim Taymans 2010-12-09 18:06:38 +01:00
parent 0b6e0b7b13
commit 0c36c70f63

View file

@ -535,8 +535,8 @@ fail:
if (*outbuf)
gst_buffer_unref (*outbuf);
*outbuf = NULL;
GST_ELEMENT_ERROR (dec, STREAM, DECODE, (NULL), (NULL));
ret = GST_FLOW_ERROR;
GST_ELEMENT_WARNING (dec, STREAM, DECODE, (NULL), (NULL));
ret = GST_FLOW_OK;
goto done;
}
no_buffer: