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:
Doug Nazar 2025-06-25 00:00:57 -04:00
parent 67031a508c
commit 35bceff695

View File

@ -7246,6 +7246,9 @@ again:
send_error:
{
if (src->busy_cmd == CMD_CLOSE && res == GST_RTSP_EEOF)
return res;
gchar *str = gst_rtsp_strresult (res);
if (res != GST_RTSP_EINTR) {
@ -9279,6 +9282,9 @@ create_request_failed:
}
send_error:
{
if (res == GST_RTSP_EEOF)
goto close;
gchar *str = gst_rtsp_strresult (res);
gst_rtsp_message_unset (&request);