From: Wim Taymans Date: Wed, 6 Jun 2012 14:41:03 +0000 (+0200) Subject: rtspconnection: handle cancellation correctly X-Git-Tag: 1.19.3~511^2~6368 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90b3f525e9b1e3b51978ab68c98cc186d28e7f36;p=platform%2Fupstream%2Fgstreamer.git rtspconnection: handle cancellation correctly --- diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index fa7ec81..2041259 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)) {