From: Edward Hervey Date: Mon, 22 Sep 2014 07:30:39 +0000 (+0200) Subject: rtsp-client: Make old compilers happy X-Git-Tag: 1.19.3~495^2~745 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=980553547d527fb149c6a8f8d1f9a23bd4d9c194;p=platform%2Fupstream%2Fgstreamer.git rtsp-client: Make old compilers happy 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 ... --- diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c index 9cd69bc..0e8b03d 100644 --- a/gst/rtsp-server/rtsp-client.c +++ b/gst/rtsp-server/rtsp-client.c @@ -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);