summaryrefslogtreecommitdiff
path: root/gst/siren/gstsirenenc.c
diff options
context:
space:
mode:
authorEdward Hervey <edward@collabora.com>2013-07-29 09:35:08 +0200
committerEdward Hervey <edward@collabora.com>2013-07-29 09:42:12 +0200
commit97426a1caac4abba03f43a5c4b6c6fcff30ba167 (patch)
tree48d2af2f49a72da383a97d2b7a00ae09799e3426 /gst/siren/gstsirenenc.c
parentbc84cd775fac9f6163526fba55d2f68dc3c067c1 (diff)
downloadgstreamer-plugins-bad-97426a1caac4abba03f43a5c4b6c6fcff30ba167.tar.gz
all: Fix for GST_DISABLE_GST_DEBUG
Where applicable, remove methods that don't do anything different than the default implementation.
Diffstat (limited to 'gst/siren/gstsirenenc.c')
-rw-r--r--gst/siren/gstsirenenc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gst/siren/gstsirenenc.c b/gst/siren/gstsirenenc.c
index b73060faf..20e3c0324 100644
--- a/gst/siren/gstsirenenc.c
+++ b/gst/siren/gstsirenenc.c
@@ -146,7 +146,10 @@ gst_siren_enc_handle_frame (GstAudioEncoder * benc, GstBuffer * buf)
GstBuffer *out_buf;
guint8 *in_data, *out_data;
guint i, size, num_frames;
- gint out_size, in_size;
+ gint out_size;
+#ifndef GST_DISABLE_GST_DEBUG
+ gint in_size;
+#endif
gint encode_ret;
GstMapInfo inmap, outmap;
@@ -166,7 +169,9 @@ gst_siren_enc_handle_frame (GstAudioEncoder * benc, GstBuffer * buf)
num_frames = size / 640;
/* this is the input/output size */
+#ifndef GST_DISABLE_GST_DEBUG
in_size = num_frames * 640;
+#endif
out_size = num_frames * 40;
GST_LOG_OBJECT (enc, "we have %u frames, %u in, %u out", num_frames, in_size,