mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
timidity: Don't post an error message on the bus for UNEXPECTED
Also don't use GST_FLOW_IS_FATAL()
This commit is contained in:
parent
e0694abd0a
commit
2aea590153
1 changed files with 8 additions and 1 deletions
|
@ -714,7 +714,9 @@ gst_timidity_loop (GstPad * sinkpad)
|
|||
gst_buffer_set_caps (out, timidity->out_caps);
|
||||
ret = gst_pad_push (timidity->srcpad, out);
|
||||
|
||||
if (GST_FLOW_IS_FATAL (ret) || ret == GST_FLOW_NOT_LINKED)
|
||||
if (ret == GST_FLOW_UNEXPECTED)
|
||||
goto eos;
|
||||
else if (ret < GST_FLOW_UNEXPECTED || ret == GST_FLOW_NOT_LINKED)
|
||||
goto error;
|
||||
|
||||
return;
|
||||
|
@ -725,6 +727,11 @@ paused:
|
|||
gst_pad_pause_task (timidity->sinkpad);
|
||||
return;
|
||||
}
|
||||
eos:
|
||||
{
|
||||
gst_pad_push_event (timidity->srcpad, gst_event_new_eos ());
|
||||
goto paused;
|
||||
}
|
||||
error:
|
||||
{
|
||||
GST_ELEMENT_ERROR (timidity, STREAM, FAILED,
|
||||
|
|
Loading…
Reference in a new issue