diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index fa7ec81642..2041259c53 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -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, &err)) { 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); goto stopped; } else if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_TIMED_OUT)) {