summaryrefslogtreecommitdiffstats
path: root/gst/auparse
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/auparse
parentcdb03bdc2b4548909f3f47eec6dfbbb3b5159411 (diff)
Remove trivial unused variables detected by CLang static analyzer.
Diffstat (limited to 'gst/auparse')
-rw-r--r--gst/auparse/gstauparse.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gst/auparse/gstauparse.c b/gst/auparse/gstauparse.c
index 14996ae1..184a7315 100644
--- a/gst/auparse/gstauparse.c
+++ b/gst/auparse/gstauparse.c
@@ -162,8 +162,6 @@ gst_au_parse_reset (GstAuParse * auparse)
static gboolean
gst_au_parse_add_srcpad (GstAuParse * auparse, GstCaps * new_caps)
{
- GstPad *srcpad = NULL;
-
if (auparse->src_caps && gst_caps_is_equal (new_caps, auparse->src_caps)) {
GST_LOG_OBJECT (auparse, "same caps, nothing to do");
return TRUE;
@@ -177,8 +175,7 @@ gst_au_parse_add_srcpad (GstAuParse * auparse, GstCaps * new_caps)
}
if (auparse->srcpad == NULL) {
- srcpad = auparse->srcpad =
- gst_pad_new_from_static_template (&src_template, "src");
+ auparse->srcpad = gst_pad_new_from_static_template (&src_template, "src");
g_return_val_if_fail (auparse->srcpad != NULL, FALSE);
#if 0
@@ -500,7 +497,6 @@ gst_au_parse_src_convert (GstAuParse * auparse, GstFormat src_format,
gint64 srcval, GstFormat dest_format, gint64 * destval)
{
gboolean ret = TRUE;
- gint64 offset;
guint samplesize, rate;
if (dest_format == src_format) {
@@ -510,7 +506,6 @@ gst_au_parse_src_convert (GstAuParse * auparse, GstFormat src_format,
GST_OBJECT_LOCK (auparse);
samplesize = auparse->sample_size;
- offset = auparse->offset;
rate = auparse->samplerate;
GST_OBJECT_UNLOCK (auparse);