diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-08-27 18:50:30 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-09-21 12:26:35 +0200 |
commit | f6014febc0f6c3c5b64e3bdb9514bc1026302c96 (patch) | |
tree | 2af13592c7099f39ecad44a36079668c733d32a6 /gst/nuvdemux | |
parent | d95bb66074bf44340b0bc1aba5cb034fbd06fd42 (diff) |
nuvdemux: Don't use GST_FLOW_IS_FATAL()
And don't post an error message for WRONG_STATE or UNEXPECTED.
Diffstat (limited to 'gst/nuvdemux')
-rw-r--r-- | gst/nuvdemux/gstnuvdemux.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/nuvdemux/gstnuvdemux.c b/gst/nuvdemux/gstnuvdemux.c index 70e1e30a8..147195447 100644 --- a/gst/nuvdemux/gstnuvdemux.c +++ b/gst/nuvdemux/gstnuvdemux.c @@ -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))); |