mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 13:21:28 +00:00
mpeg2dec: fix spurious failure to decode some files
Parsing can return with an 'invalid' state, but this is not actually fatal. For one, the mpeg2dec command line tool that comes with the libmpeg2 library blithely ignores this condition and merrily goes on. So we do this same, logging the error, and going on with parsing. This makes something work that did not use to work, and brings happiness to the world. https://bugzilla.gnome.org/show_bug.cgi?id=429476
This commit is contained in:
parent
19f1c38d4e
commit
a09bad4d98
1 changed files with 1 additions and 1 deletions
|
@ -1150,7 +1150,7 @@ gst_mpeg2dec_chain (GstPad * pad, GstBuffer * buf)
|
||||||
("%d consecutive decoding errors", mpeg2dec->error_count),
|
("%d consecutive decoding errors", mpeg2dec->error_count),
|
||||||
(NULL));
|
(NULL));
|
||||||
}
|
}
|
||||||
goto exit;
|
continue;
|
||||||
default:
|
default:
|
||||||
GST_ERROR_OBJECT (mpeg2dec, "Unknown libmpeg2 state %d, FIXME", state);
|
GST_ERROR_OBJECT (mpeg2dec, "Unknown libmpeg2 state %d, FIXME", state);
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
Loading…
Reference in a new issue