mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
bluez: return GST_FLOW_EOS in avdtpsrc create when stream is EOF
Signed-off-by: Bernhard Miller <bernhard.miller@streamunlimited.com> https://bugzilla.gnome.org/show_bug.cgi?id=705349
This commit is contained in:
parent
3b60f88437
commit
f3d6e46454
1 changed files with 5 additions and 5 deletions
|
@ -325,9 +325,7 @@ gst_avdtp_src_create (GstBaseSrc * bsrc, guint64 offset, guint length,
|
|||
if (ret < 0)
|
||||
goto read_error;
|
||||
else if (ret == 0) {
|
||||
GST_ERROR_OBJECT (avdtpsrc, "Got EOF on the transport fd");
|
||||
GST_ELEMENT_ERROR ((avdtpsrc), RESOURCE, FAILED, ("Disconnected"
|
||||
" from remote device"), (NULL));
|
||||
GST_INFO_OBJECT (avdtpsrc, "Got EOF on the transport fd");
|
||||
goto eof;
|
||||
}
|
||||
|
||||
|
@ -350,10 +348,12 @@ alloc_failed:
|
|||
read_error:
|
||||
GST_ERROR_OBJECT (avdtpsrc, "Error while reading audio data: %s",
|
||||
strerror (errno));
|
||||
gst_buffer_unref (buf);
|
||||
return GST_FLOW_ERROR;
|
||||
|
||||
eof:
|
||||
gst_buffer_unref (buf);
|
||||
|
||||
return GST_FLOW_ERROR;
|
||||
return GST_FLOW_EOS;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue