mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
gme: Post an error message on the bus for fatal errors
Also don't use GST_FLOW_IS_FATAL().
This commit is contained in:
parent
2137ae524d
commit
e618365a19
1 changed files with 7 additions and 1 deletions
|
@ -395,7 +395,13 @@ gst_gme_play (GstPad * pad)
|
||||||
|
|
||||||
gst_pad_pause_task (pad);
|
gst_pad_pause_task (pad);
|
||||||
|
|
||||||
if (GST_FLOW_IS_FATAL (flow_return) || flow_return == GST_FLOW_NOT_LINKED) {
|
if (flow_return == GST_FLOW_UNEXPECTED) {
|
||||||
|
gst_pad_push_event (pad, gst_event_new_eos ());
|
||||||
|
} else if (flow_return < GST_FLOW_UNEXPECTED
|
||||||
|
|| flow_return == GST_FLOW_NOT_LINKED) {
|
||||||
|
GST_ELEMENT_ERROR (gme, STREAM, FAILED, ("Internal data stream error."),
|
||||||
|
("stream stopped, reason %s", gst_flow_get_name (flow_return)));
|
||||||
|
|
||||||
gst_pad_push_event (pad, gst_event_new_eos ());
|
gst_pad_push_event (pad, gst_event_new_eos ());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue