client: update do_send_message to match type GstRTSPClientSendFunc
authorScott D Phillips <scott.d.phillips@intel.com>
Thu, 17 Nov 2016 17:43:37 +0000 (09:43 -0800)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 17 Nov 2016 23:38:15 +0000 (23:38 +0000)
This type mismatch fails building with MSVC

https://bugzilla.gnome.org/show_bug.cgi?id=774640

gst/rtsp-server/rtsp-client.c

index 90d624b..ab6e865 100644 (file)
@@ -3935,7 +3935,7 @@ gst_rtsp_client_send_message (GstRTSPClient * client, GstRTSPSession * session,
   return GST_RTSP_OK;
 }
 
-static GstRTSPResult
+static gboolean
 do_send_message (GstRTSPClient * client, GstRTSPMessage * message,
     gboolean close, gpointer user_data)
 {
@@ -3968,13 +3968,13 @@ do_send_message (GstRTSPClient * client, GstRTSPMessage * message,
     GST_DEBUG_OBJECT (client, "Resend due to backlog full");
   } while (ret != GST_RTSP_EINTR);
 
-  return ret;
+  return ret == GST_RTSP_OK;
 
   /* ERRORS */
 error:
   {
     GST_DEBUG_OBJECT (client, "got error %d", ret);
-    return ret;
+    return ret == GST_RTSP_OK;
   }
 }