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 ...
This commit is contained in:
Edward Hervey 2014-09-22 09:30:39 +02:00
parent 23b9d8fbb0
commit 980553547d

View 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);