gstrtspsrc: Don't emit error during close if server is EOF
During a graceful close we try to notify the server that we're finished. There is no reason to consider it an error if the server has already closed the connection. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9278>
This commit is contained in:
parent
67031a508c
commit
35bceff695
@ -7246,6 +7246,9 @@ again:
|
|||||||
|
|
||||||
send_error:
|
send_error:
|
||||||
{
|
{
|
||||||
|
if (src->busy_cmd == CMD_CLOSE && res == GST_RTSP_EEOF)
|
||||||
|
return res;
|
||||||
|
|
||||||
gchar *str = gst_rtsp_strresult (res);
|
gchar *str = gst_rtsp_strresult (res);
|
||||||
|
|
||||||
if (res != GST_RTSP_EINTR) {
|
if (res != GST_RTSP_EINTR) {
|
||||||
@ -9279,6 +9282,9 @@ create_request_failed:
|
|||||||
}
|
}
|
||||||
send_error:
|
send_error:
|
||||||
{
|
{
|
||||||
|
if (res == GST_RTSP_EEOF)
|
||||||
|
goto close;
|
||||||
|
|
||||||
gchar *str = gst_rtsp_strresult (res);
|
gchar *str = gst_rtsp_strresult (res);
|
||||||
|
|
||||||
gst_rtsp_message_unset (&request);
|
gst_rtsp_message_unset (&request);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user