summaryrefslogtreecommitdiffstats
path: root/player/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/audio.c')
-rw-r--r--player/audio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/player/audio.c b/player/audio.c
index 8f74702473..fd007fedf7 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -670,10 +670,10 @@ static bool get_sync_samples(struct MPContext *mpctx, int *skip)
sync_pts = mpctx->video_pts - opts->audio_delay;
} else if (mpctx->hrseek_active) {
sync_pts = mpctx->hrseek_pts;
- }
- // If the audio is enabled mid-stream during playback, sync accordingly.
- if (sync_pts == MP_NOPTS_VALUE)
+ } else {
+ // If audio-only is enabled mid-stream during playback, sync accordingly.
sync_pts = mpctx->playback_pts;
+ }
if (sync_pts == MP_NOPTS_VALUE) {
mpctx->audio_status = STATUS_FILLING;
return true; // syncing disabled