Signed-off-by: Bernhard Miller <bernhard.miller@streamunlimited.com>
https://bugzilla.gnome.org/show_bug.cgi?id=705349
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;
}
read_error:
GST_ERROR_OBJECT (avdtpsrc, "Error while reading audio data: %s",
strerror (errno));
-eof:
gst_buffer_unref (buf);
-
return GST_FLOW_ERROR;
+
+eof:
+ gst_buffer_unref (buf);
+ return GST_FLOW_EOS;
}
static gboolean