mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
rtspconnection: handle cancellation correctly
This commit is contained in:
parent
baa2fac2f8
commit
90b3f525e9
1 changed files with 1 additions and 1 deletions
|
@ -2096,7 +2096,7 @@ gst_rtsp_connection_receive (GstRTSPConnection * conn, GstRTSPMessage * message,
|
||||||
G_IO_IN | G_IO_PRI | G_IO_ERR | G_IO_HUP, conn->cancellable,
|
G_IO_IN | G_IO_PRI | G_IO_ERR | G_IO_HUP, conn->cancellable,
|
||||||
&err)) {
|
&err)) {
|
||||||
g_socket_set_timeout (conn->read_socket, 0);
|
g_socket_set_timeout (conn->read_socket, 0);
|
||||||
if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_BUSY)) {
|
if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
|
||||||
g_clear_error (&err);
|
g_clear_error (&err);
|
||||||
goto stopped;
|
goto stopped;
|
||||||
} else if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_TIMED_OUT)) {
|
} else if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_TIMED_OUT)) {
|
||||||
|
|
Loading…
Reference in a new issue