rtspconnection: handle cancellation correctly
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 6 Jun 2012 14:41:03 +0000 (16:41 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 6 Jun 2012 14:41:03 +0000 (16:41 +0200)
gst-libs/gst/rtsp/gstrtspconnection.c

index fa7ec81..2041259 100644 (file)
@@ -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)) {