diff options
-rw-r--r-- | player/playloop.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/player/playloop.c b/player/playloop.c index 50494809e3..d7fed6319a 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -860,12 +860,10 @@ void run_playloop(struct MPContext *mpctx) } if (mpctx->video_status == STATUS_EOF && - mpctx->audio_status >= STATUS_PLAYING) + mpctx->audio_status >= STATUS_PLAYING && + mpctx->audio_status < STATUS_EOF) { - double a_pos = 0; - if (mpctx->d_audio) - a_pos = playing_audio_pts(mpctx); - mpctx->playback_pts = a_pos; + mpctx->playback_pts = playing_audio_pts(mpctx); } handle_dummy_ticks(mpctx); |