From 18b96b52334a9d71245a65dcdd1092d913284cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 4 Sep 2007 15:23:34 +0000 Subject: [PATCH] gst/rtpmanager/gstrtpsession.c: Make compiler happy: fix compilation with -Wall -Werror (#473562). Original commit message from CVS: * gst/rtpmanager/gstrtpsession.c: Make compiler happy: fix compilation with -Wall -Werror (#473562). --- ChangeLog | 6 ++++++ gst/rtpmanager/gstrtpsession.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e1cf82fd49..3f78bc76d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-09-04 Tim-Philipp Müller + + * gst/rtpmanager/gstrtpsession.c: + Make compiler happy: fix compilation with -Wall -Werror + (#473562). + 2007-09-03 Johan Dahlin * gst/nsf/gstnsf.c: (gst_nsfdec_finalize), (start_play_tune): diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index e716682c6b..87948a4bbe 100644 --- a/gst/rtpmanager/gstrtpsession.c +++ b/gst/rtpmanager/gstrtpsession.c @@ -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;