summaryrefslogtreecommitdiffstats
path: root/gst/audioresample/debug.c
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2005-08-25 12:31:31 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2005-08-25 12:31:31 +0000
commit0daade2ce6042d380bf513b8c95760c432f3e939 (patch)
treecfe6a51ce30b5729e0b15a12c7b68701a919ac13 /gst/audioresample/debug.c
parentf488ccf221c9695d6820fefc31ed01f79e665408 (diff)
downloadgst-plugins-bad-0daade2ce6042d380bf513b8c95760c432f3e939.tar.gz
gst-plugins-bad-0daade2ce6042d380bf513b8c95760c432f3e939.tar.bz2
gst-plugins-bad-0daade2ce6042d380bf513b8c95760c432f3e939.zip
gst/audioresample/: add room for extra overlap samples when asked to transform size protect against possible mem corr...
Original commit message from CVS: * gst/audioresample/debug.c: * gst/audioresample/gstaudioresample.c: add room for extra overlap samples when asked to transform size protect against possible mem corruption and check for discrepancies between written size and outbuffer's size so we can warn for potential problems * gst/audioresample/resample.c: (resample_init), (resample_get_output_size_for_input), (resample_get_output_size), (resample_set_n_channels), (resample_set_format): set debug level based on RESAMPLE_DEBUG env var make sure that get_output_size* returns a whole number of sample_size set sample_size each time either channel or format is set * gst/audioresample/resample_chunk.c: (resample_scale_chunk): * gst/audioresample/resample_functable.c: (resample_scale_functable): * gst/audioresample/resample_ref.c: (resample_scale_ref): remove r->sample_size, it's done in resample.c now add some debugging to the ref implementation make sure we only give back bytes that are wholes of the sample size
Diffstat (limited to 'gst/audioresample/debug.c')
-rw-r--r--gst/audioresample/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/audioresample/debug.c b/gst/audioresample/debug.c
index 11fb8842..27877277 100644
--- a/gst/audioresample/debug.c
+++ b/gst/audioresample/debug.c
@@ -16,7 +16,7 @@ static const char *resample_debug_level_names[] = {
"LOG"
};
-static int resample_debug_level = RESAMPLE_LEVEL_LOG;
+static int resample_debug_level = RESAMPLE_LEVEL_ERROR;
void
resample_debug_log (int level, const char *file, const char *function,