mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
rtmpsrc: error out if we get EOS immediately without any data
It's not really right to just go EOS as if nothing was wrong.
This commit is contained in:
parent
ab3153b9a2
commit
ab783acd7f
1 changed files with 8 additions and 2 deletions
|
@ -389,10 +389,16 @@ read_failed:
|
|||
eos:
|
||||
{
|
||||
gst_buffer_unref (buf);
|
||||
if (src->cur_offset == 0) {
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL),
|
||||
("Failed to read any data from stream, check your URL"));
|
||||
return GST_FLOW_ERROR;
|
||||
} else {
|
||||
GST_DEBUG_OBJECT (src, "Reading data gave EOS");
|
||||
return GST_FLOW_EOS;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_rtmp_src_query (GstBaseSrc * basesrc, GstQuery * query)
|
||||
|
|
Loading…
Reference in a new issue