gme: Post an error message on the bus for fatal errors

Also don't use GST_FLOW_IS_FATAL().
This commit is contained in:
Sebastian Dröge 2010-08-27 18:58:23 +02:00
parent 2137ae524d
commit e618365a19

View file

@ -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 ());
} }
} }