Commit 32f5d458 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Print an errorr if a resampler skipped input frames

parent 65559b35
......@@ -135,6 +135,10 @@ static block_t *Resample (filter_t *filter, block_t *in)
goto error;
}
if (ilen < in->i_nb_samples)
msg_Err (filter, "lost %"PRIu32" of %u input frames",
in->i_nb_samples - ilen, in->i_nb_samples);
out->i_buffer = olen * framesize;
out->i_nb_samples = olen;
out->i_pts = in->i_pts;
......
......@@ -139,8 +139,8 @@ static block_t *Resample (filter_t *filter, block_t *in)
}
if (src.input_frames_used < src.input_frames)
msg_Warn (filter, "lost %ld of %ld input frames",
src.input_frames - src.input_frames_used, src.input_frames);
msg_Err (filter, "lost %ld of %ld input frames",
src.input_frames - src.input_frames_used, src.input_frames);
out->i_buffer = src.output_frames_gen * framesize;
out->i_nb_samples = src.output_frames_gen;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment