diff options
author | Edward Hervey <edward@collabora.com> | 2013-07-29 09:35:08 +0200 |
---|---|---|
committer | Edward Hervey <edward@collabora.com> | 2013-07-29 09:42:12 +0200 |
commit | 97426a1caac4abba03f43a5c4b6c6fcff30ba167 (patch) | |
tree | 48d2af2f49a72da383a97d2b7a00ae09799e3426 /gst/siren | |
parent | bc84cd775fac9f6163526fba55d2f68dc3c067c1 (diff) | |
download | gstreamer-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')
-rw-r--r-- | gst/siren/gstsirendec.c | 7 | ||||
-rw-r--r-- | gst/siren/gstsirenenc.c | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gst/siren/gstsirendec.c b/gst/siren/gstsirendec.c index 2ebf307a0..aa71d4644 100644 --- a/gst/siren/gstsirendec.c +++ b/gst/siren/gstsirendec.c @@ -164,7 +164,10 @@ gst_siren_dec_handle_frame (GstAudioDecoder * bdec, 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 decode_ret; GstMapInfo inmap, outmap; @@ -181,7 +184,9 @@ gst_siren_dec_handle_frame (GstAudioDecoder * bdec, GstBuffer * buf) num_frames = size / 40; /* this is the input/output size */ +#ifndef GST_DISABLE_GST_DEBUG in_size = num_frames * 40; +#endif out_size = num_frames * 640; GST_LOG_OBJECT (dec, "we have %u frames, %u in, %u out", num_frames, in_size, 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, |