gst/rtpmanager/gstrtpsession.c: Make compiler happy: fix compilation with -Wall ...
authorTim-Philipp Müller <tim@centricular.net>
Tue, 4 Sep 2007 15:23:34 +0000 (15:23 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 11 Aug 2009 01:30:29 +0000 (02:30 +0100)
Original commit message from CVS:
* gst/rtpmanager/gstrtpsession.c:
Make compiler happy: fix compilation with -Wall -Werror
(#473562).

gst/rtpmanager/gstrtpsession.c

index e716682..87948a4 100644 (file)
@@ -882,7 +882,7 @@ static gint
 gst_rtp_session_clock_rate (RTPSession * sess, guint8 payload,
     gpointer user_data)
 {
-  gint result = -1;
+  gint ipayload, result = -1;
   GstRtpSession *rtpsession;
   GstRtpSessionPrivate *priv;
   GValue ret = { 0 };
@@ -894,7 +894,8 @@ gst_rtp_session_clock_rate (RTPSession * sess, guint8 payload,
   priv = rtpsession->priv;
 
   GST_RTP_SESSION_LOCK (rtpsession);
-  caps = g_hash_table_lookup (priv->ptmap, GINT_TO_POINTER (payload));
+  ipayload = payload;           /* make compiler happy */
+  caps = g_hash_table_lookup (priv->ptmap, GINT_TO_POINTER (ipayload));
   if (caps)
     goto done;