mpeg2dec: Don't use GST_FLOW_IS_FATAL()

And don't post error messages if allocating a buffer resulted
in WRONG_STATE or UNEXPECTED.
This commit is contained in:
Sebastian Dröge 2010-08-27 18:26:49 +02:00
parent bd65afed85
commit 31010493ea

View file

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