mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:36:13 +00:00
GST_FLOW_UNEXPECTED -> GST_FLOW_EOS
This commit is contained in:
parent
b592f431e3
commit
acfa55df6c
2 changed files with 3 additions and 4 deletions
|
@ -380,10 +380,9 @@ gst_gme_play (GstPad * pad)
|
||||||
|
|
||||||
gst_pad_pause_task (pad);
|
gst_pad_pause_task (pad);
|
||||||
|
|
||||||
if (flow_return == GST_FLOW_UNEXPECTED) {
|
if (flow_return == GST_FLOW_EOS) {
|
||||||
gst_pad_push_event (pad, gst_event_new_eos ());
|
gst_pad_push_event (pad, gst_event_new_eos ());
|
||||||
} else if (flow_return < GST_FLOW_UNEXPECTED
|
} else if (flow_return < GST_FLOW_EOS || flow_return == GST_FLOW_NOT_LINKED) {
|
||||||
|| flow_return == GST_FLOW_NOT_LINKED) {
|
|
||||||
GST_ELEMENT_ERROR (gme, STREAM, FAILED, ("Internal data stream error."),
|
GST_ELEMENT_ERROR (gme, STREAM, FAILED, ("Internal data stream error."),
|
||||||
("stream stopped, reason %s", gst_flow_get_name (flow_return)));
|
("stream stopped, reason %s", gst_flow_get_name (flow_return)));
|
||||||
|
|
||||||
|
|
|
@ -379,7 +379,7 @@ eos:
|
||||||
{
|
{
|
||||||
gst_buffer_unref (buf);
|
gst_buffer_unref (buf);
|
||||||
GST_DEBUG_OBJECT (src, "Reading data gave EOS");
|
GST_DEBUG_OBJECT (src, "Reading data gave EOS");
|
||||||
return GST_FLOW_UNEXPECTED;
|
return GST_FLOW_EOS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue