mirror of
https://github.com/mpv-player/mpv
synced 2025-02-01 20:52:05 +00:00
player: fix cover art sometimes "syncing" against audio
Cover art is treated like video, but is not really video. In one case, the audio sync code was accidentally still active. Fixes cover art playback with --ao=null. (This is due to ao_null's latency emulation. Although it's not very clear whether that is actually correct...)
This commit is contained in:
parent
85a513abdf
commit
d45b68b938
@ -1054,7 +1054,9 @@ void run_playloop(struct MPContext *mpctx)
|
||||
|
||||
mpctx->time_frame -= get_relative_time(mpctx);
|
||||
double audio_pts = playing_audio_pts(mpctx);
|
||||
if (full_audio_buffers && !mpctx->restart_playback) {
|
||||
if (!mpctx->sync_audio_to_video) {
|
||||
mpctx->time_frame = 0;
|
||||
} else if (full_audio_buffers && !mpctx->restart_playback) {
|
||||
double buffered_audio = ao_get_delay(mpctx->ao);
|
||||
MP_TRACE(mpctx, "audio delay=%f\n", buffered_audio);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user