gst-plugins-bad: gsmenc: fix unused-but-set-variable compiler warning

Tim Müller tpm at kemper.freedesktop.org
Thu Jan 19 07:47:24 PST 2012


Module: gst-plugins-bad
Branch: master
Commit: c6edc0463d964c89be5b0b51ae6b1a903cdc4b6a
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=c6edc0463d964c89be5b0b51ae6b1a903cdc4b6a

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Thu Jan 19 15:43:51 2012 +0000

gsmenc: fix unused-but-set-variable compiler warning

---

 ext/gsm/gstgsmenc.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/ext/gsm/gstgsmenc.c b/ext/gsm/gstgsmenc.c
index ea8c43c..d95968c 100644
--- a/ext/gsm/gstgsmenc.c
+++ b/ext/gsm/gstgsmenc.c
@@ -136,11 +136,8 @@ gst_gsmenc_stop (GstAudioEncoder * enc)
 static gboolean
 gst_gsmenc_set_format (GstAudioEncoder * benc, GstAudioInfo * info)
 {
-  GstGSMEnc *gsmenc;
   GstCaps *srccaps;
 
-  gsmenc = GST_GSMENC (benc);
-
   srccaps = gst_static_pad_template_get_caps (&gsmenc_src_template);
   gst_pad_set_caps (GST_AUDIO_ENCODER_SRC_PAD (benc), srccaps);
 



More information about the gstreamer-commits mailing list