aboutsummaryrefslogtreecommitdiff
path: root/gst/siren/gstsirenenc.c
diff options
context:
space:
mode:
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 b73060fa..20e3c032 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,