From f7408f9418397fab033c974f0642e6f39cd2f48b Mon Sep 17 00:00:00 2001 From: Havard Graff Date: Wed, 12 Jun 2019 14:32:03 +0200 Subject: [PATCH] rtpbasepayload: don't use GINT_TO_POINTER with GType GType can (and will) be 64bit. GINT_TO_POINTER is not. This will result in the api-type checked for being a different one than it actually is... --- gst-libs/gst/rtp/gstrtpbasepayload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/rtp/gstrtpbasepayload.c b/gst-libs/gst/rtp/gstrtpbasepayload.c index 29e04a8f51..c6115afb2d 100644 --- a/gst-libs/gst/rtp/gstrtpbasepayload.c +++ b/gst-libs/gst/rtp/gstrtpbasepayload.c @@ -1210,7 +1210,7 @@ map_failed: static gboolean foreach_metadata_drop (GstBuffer * buffer, GstMeta ** meta, gpointer user_data) { - GType drop_api_type = (GType) GPOINTER_TO_INT (user_data); + GType drop_api_type = (GType) user_data; const GstMetaInfo *info = (*meta)->info; if (info->api == drop_api_type) @@ -1223,7 +1223,7 @@ static gboolean filter_meta (GstBuffer ** buffer, guint idx, gpointer user_data) { return gst_buffer_foreach_meta (*buffer, foreach_metadata_drop, - GINT_TO_POINTER (GST_RTP_SOURCE_META_API_TYPE)); + (gpointer) GST_RTP_SOURCE_META_API_TYPE); } /* Updates the SSRC, payload type, seqnum and timestamp of the RTP buffer