summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2005-08-25 14:51:18 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2005-08-25 14:51:18 +0000
commitdcf4df2a026e73eb67b9c94208250fd1261d6bca (patch)
treee8ad786e1d001ef773ebc320ecb2030b9f02f293
parent0daade2ce6042d380bf513b8c95760c432f3e939 (diff)
downloadgst-plugins-bad-dcf4df2a026e73eb67b9c94208250fd1261d6bca.tar.gz
gst-plugins-bad-dcf4df2a026e73eb67b9c94208250fd1261d6bca.tar.bz2
gst-plugins-bad-dcf4df2a026e73eb67b9c94208250fd1261d6bca.zip
show some info on what's left in the queue
Original commit message from CVS: show some info on what's left in the queue
-rw-r--r--gst/audioresample/resample_ref.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gst/audioresample/resample_ref.c b/gst/audioresample/resample_ref.c
index 3fc9d2e8..187f72c4 100644
--- a/gst/audioresample/resample_ref.c
+++ b/gst/audioresample/resample_ref.c
@@ -88,6 +88,8 @@ resample_scale_ref (ResampleState * r)
}
RESAMPLE_DEBUG ("asked to resample %d bytes", r->o_size);
+ RESAMPLE_DEBUG ("%d bytes in queue",
+ audioresample_buffer_queue_get_depth (r->queue));
while (r->o_size >= r->sample_size) {
double midpoint;
@@ -95,8 +97,10 @@ resample_scale_ref (ResampleState * r)
int j;
midpoint = r->i_start + (r->filter_length - 1) * 0.5 * r->i_inc;
- RESAMPLE_DEBUG ("still need to output %d bytes, i_start %g, midpoint %f",
- r->o_size, r->i_start, midpoint);
+ RESAMPLE_DEBUG
+ ("still need to output %d bytes, %d input left, i_start %g, midpoint %f",
+ r->o_size, audioresample_buffer_queue_get_depth (r->queue), r->i_start,
+ midpoint);
if (midpoint > 0.5 * r->i_inc) {
RESAMPLE_ERROR ("inconsistent state");
}