mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
nuvdemux: Don't use GST_FLOW_IS_FATAL()
And don't post an error message for WRONG_STATE or UNEXPECTED.
This commit is contained in:
parent
d95bb66074
commit
f6014febc0
1 changed files with 3 additions and 1 deletions
|
@ -729,7 +729,9 @@ gst_nuv_demux_play (GstPad * pad)
|
|||
pause:
|
||||
GST_LOG_OBJECT (nuv, "pausing task, reason %s", gst_flow_get_name (res));
|
||||
gst_pad_pause_task (nuv->sinkpad);
|
||||
if (GST_FLOW_IS_FATAL (res)) {
|
||||
if (res == GST_FLOW_UNEXPECTED) {
|
||||
gst_nuv_demux_send_eos (nuv);
|
||||
} else if (res == GST_FLOW_NOT_LINKED || res < GST_FLOW_UNEXPECTED) {
|
||||
GST_ELEMENT_ERROR (nuv, STREAM, FAILED,
|
||||
(_("Internal data stream error.")),
|
||||
("streaming stopped, reason %s", gst_flow_get_name (res)));
|
||||
|
|
Loading…
Reference in a new issue