diff options
author | Robert Swain <robert.swain@collabora.co.uk> | 2011-04-15 14:57:20 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-04-16 12:49:16 +0100 |
commit | 5b18c652fbb683e0b15a8f7a662e0acb1c32bac4 (patch) | |
tree | 919c1e0569455a8cfc51673bc7ebccd8a8d50705 /gst/rtp/gstrtpgstdepay.c | |
parent | 1c6e8682ec12d77d14ac050c32db4cd9c9a97f3b (diff) | |
download | gstreamer-plugins-good-5b18c652fbb683e0b15a8f7a662e0acb1c32bac4.tar.gz |
rtp, rtpmanager: Address unused but set variables
GCC 4.6.x spits warnings about variables that are unused but set. Such
variables have been removed where trivial but with comments left behind
for informational purposes in some cases.
gst_rtp_session_chain_recv_rtcp () was changed in commit 490113d4
to always return GST_FLOW_OK instead of the return value of
rtp_session_process_rtcp (), so we'll keep it that way.
Diffstat (limited to 'gst/rtp/gstrtpgstdepay.c')
-rw-r--r-- | gst/rtp/gstrtpgstdepay.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/rtp/gstrtpgstdepay.c b/gst/rtp/gstrtpgstdepay.c index 4e536bafa..6dc5e511a 100644 --- a/gst/rtp/gstrtpgstdepay.c +++ b/gst/rtp/gstrtpgstdepay.c @@ -183,7 +183,6 @@ gst_rtp_gst_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf) GstBuffer *subbuf, *outbuf = NULL; gint payload_len; guint8 *payload; - guint16 frag_offset; guint CV; rtpgstdepay = GST_RTP_GST_DEPAY (depayload); @@ -210,8 +209,9 @@ gst_rtp_gst_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf) * | Frag_offset | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ */ - frag_offset = - (payload[4] << 24) | (payload[5] << 16) | (payload[6] << 8) | payload[7]; + /* frag_offset = + * (payload[4] << 24) | (payload[5] << 16) | (payload[6] << 8) | payload[7]; + */ /* subbuffer skipping the 8 header bytes */ subbuf = gst_rtp_buffer_get_payload_subbuffer (buf, 8, -1); |