mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
bd65afed85
commit
31010493ea
1 changed files with 1 additions and 1 deletions
|
@ -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)));
|
||||
|
|
Loading…
Reference in a new issue