mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
rtspsrc: Error out when failling to receive message response
And let it rety twice. Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/717 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/601>
This commit is contained in:
parent
3ea71a63f6
commit
3fdae346ca
1 changed files with 18 additions and 0 deletions
|
@ -6476,6 +6476,10 @@ again:
|
|||
goto again;
|
||||
}
|
||||
}
|
||||
|
||||
if (res < 0)
|
||||
goto receive_error;
|
||||
|
||||
gst_rtsp_ext_list_after_send (src->extensions, request, response);
|
||||
|
||||
return res;
|
||||
|
@ -6493,6 +6497,20 @@ send_error:
|
|||
g_free (str);
|
||||
return res;
|
||||
}
|
||||
|
||||
receive_error:
|
||||
{
|
||||
gchar *str = gst_rtsp_strresult (res);
|
||||
|
||||
if (res != GST_RTSP_EINTR) {
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL),
|
||||
("Could not receive message. (%s)", str));
|
||||
} else {
|
||||
GST_WARNING_OBJECT (src, "receive interrupted");
|
||||
}
|
||||
g_free (str);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue