Skip to content

Commit

Permalink
avsb: move sync setup call
Browse files Browse the repository at this point in the history
  • Loading branch information
tguillem authored and fkuehne committed Aug 13, 2024
1 parent fcfa2b5 commit e04bdb3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/audio_output/apple/avsamplebuffer.m
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,6 @@ - (void)play:(block_t *)block date:(vlc_tick_t)date
CMTime hostTime = CMTimeAdd(CMClockGetTime(CMClockGetHostTimeClock()),
CMTimeMake(delta, CLOCK_FREQ));
CMTime time = CMTimeMake(_ptsSamples, _sampleRate);

_sync.delaysRateChangeUntilHasSufficientMediaData = NO;
[_sync setRate:1.0f time:time atHostTime:hostTime];
}

Expand Down Expand Up @@ -465,6 +463,7 @@ - (BOOL)start:(audio_sample_format_t *)fmt
goto error;
}

_sync.delaysRateChangeUntilHasSufficientMediaData = NO;
[_sync addRenderer:_renderer];

_ptsSamples = -1;
Expand Down

0 comments on commit e04bdb3

Please sign in to comment.