mirror of https://github.com/mpv-player/mpv
audio: remove an old hack
This was a cosmetic issue. It's handled differently now (clamping the
display time to known duration range).
This reverts commit 33b57f5557
.
This commit is contained in:
parent
3170473003
commit
a075dfb52c
|
@ -424,7 +424,7 @@ static bool get_sync_samples(struct MPContext *mpctx, int *skip)
|
|||
return true;
|
||||
}
|
||||
|
||||
static void do_fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
|
||||
void fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
|
||||
{
|
||||
struct MPOpts *opts = mpctx->opts;
|
||||
struct dec_audio *d_audio = mpctx->d_audio;
|
||||
|
@ -591,15 +591,6 @@ static void do_fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
|
|||
}
|
||||
}
|
||||
|
||||
void fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
|
||||
{
|
||||
do_fill_audio_out_buffers(mpctx, endpts);
|
||||
// Run audio playback state machine again to display the actual audio PTS
|
||||
// as current time on OSD in audio-only mode in most situations.
|
||||
if (mpctx->audio_status == STATUS_SYNCING)
|
||||
do_fill_audio_out_buffers(mpctx, endpts);
|
||||
}
|
||||
|
||||
// Drop data queued for output, or which the AO is currently outputting.
|
||||
void clear_audio_output_buffers(struct MPContext *mpctx)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue