Skip to content

Commit

Permalink
Updated: change default value of property allowsFrameDrop.
Browse files Browse the repository at this point in the history
  • Loading branch information
KWANG HYOUN KIM committed Aug 9, 2019
1 parent 0522963 commit 37e576a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DLGPlayer/DLGPlayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ - (void)initVars {
_aframes = [NSMutableArray arrayWithCapacity:128];
_playingAudioFrame = nil;
_playingAudioFrameDataPosition = 0;
_allowsFrameDrop = YES;
_allowsFrameDrop = NO;
_closing = NO;
_opening = NO;
_buffering = NO;
Expand Down Expand Up @@ -304,10 +304,12 @@ - (void)readFrame {
}

if (dispatch_semaphore_wait(self.aFramesLock, t) == 0) {
self.bufferedDuration = 0;
[self.aframes removeAllObjects];
dispatch_semaphore_signal(self.aFramesLock);
}

self.bufferedDuration = 0;

if (DLGPlayerUtils.debugEnabled) {
NSLog(@"DLGPlayer drop frames beacuse buffer duration is over than max duration.");
}
Expand Down

0 comments on commit 37e576a

Please sign in to comment.