summaryrefslogtreecommitdiffstats
path: root/gst/rtp
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-04-18 18:11:00 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-04-18 18:51:28 +0200
commit0cb5b42d546538b455ac3bbe90b07e3eb67eb820 (patch)
tree24b178742be806e745b7a3891aa0d63920c364b4 /gst/rtp
parentcdb03bdc2b4548909f3f47eec6dfbbb3b5159411 (diff)
Remove trivial unused variables detected by CLang static analyzer.
Diffstat (limited to 'gst/rtp')
-rw-r--r--gst/rtp/gstrtpac3depay.c3
-rw-r--r--gst/rtp/gstrtpdvpay.c4
-rw-r--r--gst/rtp/gstrtph263pay.c2
-rw-r--r--gst/rtp/gstrtph263ppay.c2
-rw-r--r--gst/rtp/gstrtpilbcdepay.c4
-rw-r--r--gst/rtp/gstrtpjpegdepay.c3
-rw-r--r--gst/rtp/gstrtpmp1sdepay.c6
-rw-r--r--gst/rtp/gstrtpmp2tdepay.c3
-rw-r--r--gst/rtp/gstrtpmp2tpay.c9
-rw-r--r--gst/rtp/gstrtpmp4gpay.c7
-rw-r--r--gst/rtp/gstrtpmp4vdepay.c3
-rw-r--r--gst/rtp/gstrtpmpadepay.c3
-rw-r--r--gst/rtp/gstrtpmpvdepay.c3
-rw-r--r--gst/rtp/gstrtpmpvpay.c17
-rw-r--r--gst/rtp/gstrtpsirenpay.c5
-rw-r--r--gst/rtp/gstrtpvorbisdepay.c2
-rw-r--r--gst/rtp/gstrtpvrawdepay.c3
17 files changed, 4 insertions, 75 deletions
diff --git a/gst/rtp/gstrtpac3depay.c b/gst/rtp/gstrtpac3depay.c
index 4dd3bbab..6165d901 100644
--- a/gst/rtp/gstrtpac3depay.c
+++ b/gst/rtp/gstrtpac3depay.c
@@ -102,13 +102,10 @@ static gboolean
gst_rtp_ac3_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
{
GstStructure *structure;
- GstRtpAC3Depay *rtpac3depay;
gint clock_rate;
GstCaps *srccaps;
gboolean res;
- rtpac3depay = GST_RTP_AC3_DEPAY (depayload);
-
structure = gst_caps_get_structure (caps, 0);
if (!gst_structure_get_int (structure, "clock-rate", &clock_rate))
diff --git a/gst/rtp/gstrtpdvpay.c b/gst/rtp/gstrtpdvpay.c
index f7a180e6..c997bf68 100644
--- a/gst/rtp/gstrtpdvpay.c
+++ b/gst/rtp/gstrtpdvpay.c
@@ -180,10 +180,6 @@ gst_dv_pay_get_property (GObject * object,
static gboolean
gst_rtp_dv_pay_setcaps (GstBaseRTPPayload * payload, GstCaps * caps)
{
- GstRTPDVPay *rtpdvpay;
-
- rtpdvpay = GST_RTP_DV_PAY (payload);
-
/* We don't do anything here, but we could check if it's a system stream and if
* it's not, default to sending the video only. We will negotiate downstream
* caps when we get to see the first frame. */
diff --git a/gst/rtp/gstrtph263pay.c b/gst/rtp/gstrtph263pay.c
index 21670f45..afad63b9 100644
--- a/gst/rtp/gstrtph263pay.c
+++ b/gst/rtp/gstrtph263pay.c
@@ -1823,12 +1823,10 @@ gst_rtp_h263_pay_handle_buffer (GstBaseRTPPayload * payload, GstBuffer * buffer)
GstRtpH263Pay *rtph263pay;
GstFlowReturn ret;
- guint size;
GST_DEBUG ("-------------------- NEW FRAME ---------------");
rtph263pay = GST_RTP_H263_PAY (payload);
- size = GST_BUFFER_SIZE (buffer);
rtph263pay->first_ts = GST_BUFFER_TIMESTAMP (buffer);
/* we always encode and flush a full picture */
diff --git a/gst/rtp/gstrtph263ppay.c b/gst/rtp/gstrtph263ppay.c
index a4b17ed7..ef0af9d3 100644
--- a/gst/rtp/gstrtph263ppay.c
+++ b/gst/rtp/gstrtph263ppay.c
@@ -349,11 +349,9 @@ gst_rtp_h263p_pay_handle_buffer (GstBaseRTPPayload * payload,
{
GstRtpH263PPay *rtph263ppay;
GstFlowReturn ret;
- guint size;
rtph263ppay = GST_RTP_H263P_PAY (payload);
- size = GST_BUFFER_SIZE (buffer);
rtph263ppay->first_timestamp = GST_BUFFER_TIMESTAMP (buffer);
rtph263ppay->first_duration = GST_BUFFER_DURATION (buffer);
diff --git a/gst/rtp/gstrtpilbcdepay.c b/gst/rtp/gstrtpilbcdepay.c
index 7a57d543..3f1d7160 100644
--- a/gst/rtp/gstrtpilbcdepay.c
+++ b/gst/rtp/gstrtpilbcdepay.c
@@ -135,10 +135,6 @@ static void
gst_rtp_ilbc_depay_init (GstRTPiLBCDepay * rtpilbcdepay,
GstRTPiLBCDepayClass * klass)
{
- GstBaseRTPDepayload *depayload;
-
- depayload = GST_BASE_RTP_DEPAYLOAD (rtpilbcdepay);
-
/* Set default mode */
rtpilbcdepay->mode = DEFAULT_MODE;
}
diff --git a/gst/rtp/gstrtpjpegdepay.c b/gst/rtp/gstrtpjpegdepay.c
index 75f42729..3eac3cc0 100644
--- a/gst/rtp/gstrtpjpegdepay.c
+++ b/gst/rtp/gstrtpjpegdepay.c
@@ -381,13 +381,10 @@ static gboolean
gst_rtp_jpeg_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
{
GstStructure *structure;
- GstRtpJPEGDepay *rtpjpegdepay;
GstCaps *outcaps;
gint clock_rate;
gboolean res;
- rtpjpegdepay = GST_RTP_JPEG_DEPAY (depayload);
-
structure = gst_caps_get_structure (caps, 0);
if (!gst_structure_get_int (structure, "clock-rate", &clock_rate))
diff --git a/gst/rtp/gstrtpmp1sdepay.c b/gst/rtp/gstrtpmp1sdepay.c
index 6ca6a9bd..785fe3d6 100644
--- a/gst/rtp/gstrtpmp1sdepay.c
+++ b/gst/rtp/gstrtpmp1sdepay.c
@@ -115,12 +115,9 @@ gst_rtp_mp1s_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
{
GstCaps *srccaps;
GstStructure *structure;
- GstRtpMP1SDepay *rtpmp1sdepay;
gint clock_rate;
gboolean res;
- rtpmp1sdepay = GST_RTP_MP1S_DEPAY (depayload);
-
structure = gst_caps_get_structure (caps, 0);
if (!gst_structure_get_int (structure, "clock-rate", &clock_rate))
clock_rate = 90000; /* default */
@@ -137,11 +134,8 @@ gst_rtp_mp1s_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
static GstBuffer *
gst_rtp_mp1s_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
{
- GstRtpMP1SDepay *rtpmp1sdepay;
GstBuffer *outbuf;
- rtpmp1sdepay = GST_RTP_MP1S_DEPAY (depayload);
-
outbuf = gst_rtp_buffer_get_payload_buffer (buf);
GST_DEBUG ("gst_rtp_mp1s_depay_chain: pushing buffer of size %d",
diff --git a/gst/rtp/gstrtpmp2tdepay.c b/gst/rtp/gstrtpmp2tdepay.c
index b4e43533..38db6362 100644
--- a/gst/rtp/gstrtpmp2tdepay.c
+++ b/gst/rtp/gstrtpmp2tdepay.c
@@ -140,12 +140,9 @@ gst_rtp_mp2t_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
{
GstCaps *srccaps;
GstStructure *structure;
- GstRtpMP2TDepay *rtpmp2tdepay;
gint clock_rate;
gboolean res;
- rtpmp2tdepay = GST_RTP_MP2T_DEPAY (depayload);
-
structure = gst_caps_get_structure (caps, 0);
if (!gst_structure_get_int (structure, "clock-rate", &clock_rate))
clock_rate = 90000; /* default */
diff --git a/gst/rtp/gstrtpmp2tpay.c b/gst/rtp/gstrtpmp2tpay.c
index dbec4eda..88d554cd 100644
--- a/gst/rtp/gstrtpmp2tpay.c
+++ b/gst/rtp/gstrtpmp2tpay.c
@@ -114,13 +114,6 @@ gst_rtp_mp2t_pay_finalize (GObject * object)
static gboolean
gst_rtp_mp2t_pay_setcaps (GstBaseRTPPayload * payload, GstCaps * caps)
{
- const char *stname;
- GstStructure *structure;
-
- structure = gst_caps_get_structure (caps, 0);
-
- stname = gst_structure_get_name (structure);
-
gst_basertppayload_set_options (payload, "video", TRUE, "MP2T-ES", 90000);
gst_basertppayload_set_outcaps (payload, NULL);
@@ -164,14 +157,12 @@ gst_rtp_mp2t_pay_handle_buffer (GstBaseRTPPayload * basepayload,
{
GstRTPMP2TPay *rtpmp2tpay;
guint size, avail, packet_len;
- guint8 *data;
GstClockTime timestamp, duration;
GstFlowReturn ret;
rtpmp2tpay = GST_RTP_MP2T_PAY (basepayload);
size = GST_BUFFER_SIZE (buffer);
- data = GST_BUFFER_DATA (buffer);
timestamp = GST_BUFFER_TIMESTAMP (buffer);
duration = GST_BUFFER_DURATION (buffer);
diff --git a/gst/rtp/gstrtpmp4gpay.c b/gst/rtp/gstrtpmp4gpay.c
index 05b5b716..1ad8e1c6 100644
--- a/gst/rtp/gstrtpmp4gpay.c
+++ b/gst/rtp/gstrtpmp4gpay.c
@@ -528,9 +528,6 @@ gst_rtp_mp4g_pay_handle_buffer (GstBaseRTPPayload * basepayload,
GstBuffer * buffer)
{
GstRtpMP4GPay *rtpmp4gpay;
- GstFlowReturn ret;
-
- ret = GST_FLOW_OK;
rtpmp4gpay = GST_RTP_MP4G_PAY (basepayload);
@@ -539,9 +536,7 @@ gst_rtp_mp4g_pay_handle_buffer (GstBaseRTPPayload * basepayload,
/* we always encode and flush a full AU */
gst_adapter_push (rtpmp4gpay->adapter, buffer);
- ret = gst_rtp_mp4g_pay_flush (rtpmp4gpay);
-
- return ret;
+ return gst_rtp_mp4g_pay_flush (rtpmp4gpay);
}
gboolean
diff --git a/gst/rtp/gstrtpmp4vdepay.c b/gst/rtp/gstrtpmp4vdepay.c
index c8f0dc20..bf40433c 100644
--- a/gst/rtp/gstrtpmp4vdepay.c
+++ b/gst/rtp/gstrtpmp4vdepay.c
@@ -133,14 +133,11 @@ static gboolean
gst_rtp_mp4v_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
{
GstStructure *structure;
- GstRtpMP4VDepay *rtpmp4vdepay;
GstCaps *srccaps;
const gchar *str;
gint clock_rate;
gboolean res;
- rtpmp4vdepay = GST_RTP_MP4V_DEPAY (depayload);
-
structure = gst_caps_get_structure (caps, 0);
if (!gst_structure_get_int (structure, "clock-rate", &clock_rate))
diff --git a/gst/rtp/gstrtpmpadepay.c b/gst/rtp/gstrtpmpadepay.c
index 4fc5734f..3545c731 100644
--- a/gst/rtp/gstrtpmpadepay.c
+++ b/gst/rtp/gstrtpmpadepay.c
@@ -105,13 +105,10 @@ static gboolean
gst_rtp_mpa_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
{
GstStructure *structure;
- GstRtpMPADepay *rtpmpadepay;
GstCaps *outcaps;
gint clock_rate;
gboolean res;
- rtpmpadepay = GST_RTP_MPA_DEPAY (depayload);
-
structure = gst_caps_get_structure (caps, 0);
if (!gst_structure_get_int (structure, "clock-rate", &clock_rate))
diff --git a/gst/rtp/gstrtpmpvdepay.c b/gst/rtp/gstrtpmpvdepay.c
index c03f4055..dc8c19ee 100644
--- a/gst/rtp/gstrtpmpvdepay.c
+++ b/gst/rtp/gstrtpmpvdepay.c
@@ -108,13 +108,10 @@ static gboolean
gst_rtp_mpv_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
{
GstStructure *structure;
- GstRtpMPVDepay *rtpmpvdepay;
gint clock_rate;
GstCaps *outcaps;
gboolean res;
- rtpmpvdepay = GST_RTP_MPV_DEPAY (depayload);
-
structure = gst_caps_get_structure (caps, 0);
if (!gst_structure_get_int (structure, "clock-rate", &clock_rate))
diff --git a/gst/rtp/gstrtpmpvpay.c b/gst/rtp/gstrtpmpvpay.c
index cd267305..14a74cf8 100644
--- a/gst/rtp/gstrtpmpvpay.c
+++ b/gst/rtp/gstrtpmpvpay.c
@@ -114,18 +114,8 @@ gst_rtp_mpv_pay_finalize (GObject * object)
static gboolean
gst_rtp_mpv_pay_setcaps (GstBaseRTPPayload * payload, GstCaps * caps)
{
- const char *stname;
- GstStructure *structure;
- gboolean res;
-
- structure = gst_caps_get_structure (caps, 0);
-
- stname = gst_structure_get_name (structure);
-
gst_basertppayload_set_options (payload, "video", FALSE, "MPV", 90000);
- res = gst_basertppayload_set_outcaps (payload, NULL);
-
- return res;
+ return gst_basertppayload_set_outcaps (payload, NULL);
}
static GstFlowReturn
@@ -193,15 +183,12 @@ gst_rtp_mpv_pay_handle_buffer (GstBaseRTPPayload * basepayload,
GstBuffer * buffer)
{
GstRTPMPVPay *rtpmpvpay;
- guint size, avail, packet_len;
- guint8 *data;
+ guint avail, packet_len;
GstClockTime timestamp, duration;
GstFlowReturn ret;
rtpmpvpay = GST_RTP_MPV_PAY (basepayload);
- size = GST_BUFFER_SIZE (buffer);
- data = GST_BUFFER_DATA (buffer);
timestamp = GST_BUFFER_TIMESTAMP (buffer);
duration = GST_BUFFER_DURATION (buffer);
diff --git a/gst/rtp/gstrtpsirenpay.c b/gst/rtp/gstrtpsirenpay.c
index e47b2715..b03281b0 100644
--- a/gst/rtp/gstrtpsirenpay.c
+++ b/gst/rtp/gstrtpsirenpay.c
@@ -110,7 +110,6 @@ gst_rtpsirenpay_setcaps (GstBaseRTPPayload * basertppayload, GstCaps * caps)
{
GstRTPSirenPay *rtpsirenpay;
GstBaseRTPAudioPayload *basertpaudiopayload;
- gboolean ret;
gint dct_length;
GstStructure *structure;
const char *payload_name;
@@ -133,9 +132,7 @@ gst_rtpsirenpay_setcaps (GstBaseRTPPayload * basertppayload, GstCaps * caps)
/* set options for this frame based audio codec */
gst_base_rtp_audio_payload_set_frame_options (basertpaudiopayload, 20, 40);
- ret = gst_basertppayload_set_outcaps (basertppayload, NULL);
-
- return TRUE;
+ return gst_basertppayload_set_outcaps (basertppayload, NULL);
/* ERRORS */
wrong_dct:
diff --git a/gst/rtp/gstrtpvorbisdepay.c b/gst/rtp/gstrtpvorbisdepay.c
index 7e13859d..bcaa1976 100644
--- a/gst/rtp/gstrtpvorbisdepay.c
+++ b/gst/rtp/gstrtpvorbisdepay.c
@@ -410,7 +410,6 @@ gst_rtp_vorbis_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
guint32 timestamp;
guint32 header, ident;
guint8 F, VDT, packets;
- gboolean free_payload;
rtpvorbisdepay = GST_RTP_VORBIS_DEPAY (depayload);
@@ -423,7 +422,6 @@ gst_rtp_vorbis_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
goto packet_short;
payload = gst_rtp_buffer_get_payload (buf);
- free_payload = FALSE;
header = GST_READ_UINT32_BE (payload);
/*
diff --git a/gst/rtp/gstrtpvrawdepay.c b/gst/rtp/gstrtpvrawdepay.c
index 11ac258b..4300aaa7 100644
--- a/gst/rtp/gstrtpvrawdepay.c
+++ b/gst/rtp/gstrtpvrawdepay.c
@@ -272,15 +272,12 @@ static GstBuffer *
gst_rtp_vraw_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
{
GstRtpVRawDepay *rtpvrawdepay;
- gint payload_len;
guint8 *payload, *data, *yp, *up, *vp, *headers;
guint32 timestamp;
guint cont, ystride, uvstride, pgroup;
rtpvrawdepay = GST_RTP_VRAW_DEPAY (depayload);
- payload_len = gst_rtp_buffer_get_payload_len (buf);
-
timestamp = gst_rtp_buffer_get_timestamp (buf);
if (timestamp != rtpvrawdepay->timestamp || rtpvrawdepay->outbuf == NULL) {