rtsp-client: Make old compilers happy
authorEdward Hervey <bilboed@bilboed.com>
Mon, 22 Sep 2014 07:30:39 +0000 (09:30 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 22 Sep 2014 07:30:39 +0000 (09:30 +0200)
rtsp-client.c:2553:50: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]

Just in case that guint8 doesn't fit in a pointer. Just in case ...

gst/rtsp-server/rtsp-client.c

index 9cd69bc..0e8b03d 100644 (file)
@@ -2550,7 +2550,8 @@ handle_data (GstRTSPClient * client, GstRTSPMessage * message)
 
   buffer = gst_buffer_new_wrapped (data, size);
 
-  trans = g_hash_table_lookup (priv->transports, GINT_TO_POINTER (channel));
+  trans =
+      g_hash_table_lookup (priv->transports, GINT_TO_POINTER ((gint) channel));
   if (trans) {
     /* dispatch to the stream based on the channel number */
     gst_rtsp_stream_transport_recv_data (trans, channel, buffer);