Skip to content
Snippets Groups Projects
Commit 0b58c77e authored by Martin Storsjö's avatar Martin Storsjö
Browse files

audio_frame_queue: Define af_queue_log_state before using it


This fixes building with DEBUG defined after the function was made
static and the prototype removed in d7f9786c.

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 7627c35a
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,22 @@ void ff_af_queue_close(AudioFrameQueue *afq)
memset(afq, 0, sizeof(*afq));
}
#ifdef DEBUG
static void af_queue_log_state(AudioFrameQueue *afq)
{
AudioFrame *f;
av_dlog(afq->avctx, "remaining delay = %d\n", afq->remaining_delay);
av_dlog(afq->avctx, "remaining samples = %d\n", afq->remaining_samples);
av_dlog(afq->avctx, "frames:\n");
f = afq->frame_queue;
while (f) {
av_dlog(afq->avctx, " [ pts=%9"PRId64" duration=%d ]\n",
f->pts, f->duration);
f = f->next;
}
}
#endif /* DEBUG */
int ff_af_queue_add(AudioFrameQueue *afq, const AVFrame *f)
{
AudioFrame *new_frame;
......@@ -145,19 +161,3 @@ void ff_af_queue_remove(AudioFrameQueue *afq, int nb_samples, int64_t *pts,
if (duration)
*duration = ff_samples_to_time_base(afq->avctx, removed_samples);
}
#ifdef DEBUG
static void af_queue_log_state(AudioFrameQueue *afq)
{
AudioFrame *f;
av_dlog(afq->avctx, "remaining delay = %d\n", afq->remaining_delay);
av_dlog(afq->avctx, "remaining samples = %d\n", afq->remaining_samples);
av_dlog(afq->avctx, "frames:\n");
f = afq->frame_queue;
while (f) {
av_dlog(afq->avctx, " [ pts=%9"PRId64" duration=%d ]\n",
f->pts, f->duration);
f = f->next;
}
}
#endif /* DEBUG */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment