mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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
This commit is contained in:
parent
7647f7fc4e
commit
f7cb2ba67a
1 changed files with 6 additions and 2 deletions
|
@ -88,6 +88,8 @@ resample_scale_ref (ResampleState * r)
|
||||||
}
|
}
|
||||||
|
|
||||||
RESAMPLE_DEBUG ("asked to resample %d bytes", r->o_size);
|
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) {
|
while (r->o_size >= r->sample_size) {
|
||||||
double midpoint;
|
double midpoint;
|
||||||
|
@ -95,8 +97,10 @@ resample_scale_ref (ResampleState * r)
|
||||||
int j;
|
int j;
|
||||||
|
|
||||||
midpoint = r->i_start + (r->filter_length - 1) * 0.5 * r->i_inc;
|
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",
|
RESAMPLE_DEBUG
|
||||||
r->o_size, r->i_start, midpoint);
|
("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) {
|
if (midpoint > 0.5 * r->i_inc) {
|
||||||
RESAMPLE_ERROR ("inconsistent state");
|
RESAMPLE_ERROR ("inconsistent state");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue