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:
Sebastian Dröge 2010-08-27 18:50:30 +02:00
parent d95bb66074
commit f6014febc0

View file

@ -729,7 +729,9 @@ gst_nuv_demux_play (GstPad * pad)
pause: pause:
GST_LOG_OBJECT (nuv, "pausing task, reason %s", gst_flow_get_name (res)); GST_LOG_OBJECT (nuv, "pausing task, reason %s", gst_flow_get_name (res));
gst_pad_pause_task (nuv->sinkpad); 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, GST_ELEMENT_ERROR (nuv, STREAM, FAILED,
(_("Internal data stream error.")), (_("Internal data stream error.")),
("streaming stopped, reason %s", gst_flow_get_name (res))); ("streaming stopped, reason %s", gst_flow_get_name (res)));