summaryrefslogtreecommitdiffstats
path: root/gst/rtp/gstrtpj2kdepay.c
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-08-09 09:43:00 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-08-10 09:58:33 +0200
commit0d6f0801f5c9052f40091cabe30b64cc487fe7de (patch)
tree9623bc4c19f5315e847babefac9e545adde5fa0a /gst/rtp/gstrtpj2kdepay.c
parent153ae910a01e52e1c60e77a9fe821b195ea1d092 (diff)
rtp: Remove dead assignments and resulting unneeded variables.
Diffstat (limited to 'gst/rtp/gstrtpj2kdepay.c')
-rw-r--r--gst/rtp/gstrtpj2kdepay.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/gst/rtp/gstrtpj2kdepay.c b/gst/rtp/gstrtpj2kdepay.c
index 0d467e41..59904a53 100644
--- a/gst/rtp/gstrtpj2kdepay.c
+++ b/gst/rtp/gstrtpj2kdepay.c
@@ -125,14 +125,11 @@ gst_rtp_j2k_depay_finalize (GObject * object)
static gboolean
gst_rtp_j2k_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
{
- GstRtpJ2KDepay *rtpj2kdepay;
GstStructure *structure;
gint clock_rate;
GstCaps *outcaps;
gboolean res;
- rtpj2kdepay = GST_RTP_J2K_DEPAY (depayload);
-
structure = gst_caps_get_structure (caps, 0);
if (!gst_structure_get_int (structure, "clock-rate", &clock_rate))
@@ -154,7 +151,6 @@ gst_rtp_j2k_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
{
GstRtpJ2KDepay *rtpj2kdepay;
GstBuffer *outbuf;
- gint payload_len;
guint8 *payload;
guint frag_offset;
@@ -167,9 +163,7 @@ gst_rtp_j2k_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
rtpj2kdepay->need_header = TRUE;
}
- payload_len = gst_rtp_buffer_get_payload_len (buf);
-
- if (payload_len < 8)
+ if (gst_rtp_buffer_get_payload_len (buf) < 8)
goto empty_packet;
payload = gst_rtp_buffer_get_payload (buf);
@@ -194,9 +188,6 @@ gst_rtp_j2k_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
rtpj2kdepay->need_header = FALSE;
}
- payload += 8;
- payload_len -= 8;
-
/* take JPEG 2000 data, push in the adapter */
outbuf = gst_rtp_buffer_get_payload_subbuffer (buf, 8, -1);
gst_adapter_push (rtpj2kdepay->adapter, outbuf);