diff options
Diffstat (limited to 'player/audio.c')
-rw-r--r-- | player/audio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/player/audio.c b/player/audio.c index 2f2bc07f0f..8f74702473 100644 --- a/player/audio.c +++ b/player/audio.c @@ -671,6 +671,9 @@ static bool get_sync_samples(struct MPContext *mpctx, int *skip) } 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) + sync_pts = mpctx->playback_pts; if (sync_pts == MP_NOPTS_VALUE) { mpctx->audio_status = STATUS_FILLING; return true; // syncing disabled |