Skip to content

Commit

Permalink
SGData: Assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
libobjc committed Oct 31, 2019
1 parent 79736a6 commit 7db8f9f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions SGPlayer/Classes/Core/SGData/SGFrame.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ - (void)lock
- (void)unlock
{
[self->_lock lock];
NSAssert(self->_lockingCount > 0, @"SGFrame, Invalid locking count");
self->_lockingCount -= 1;
BOOL comeback = self->_lockingCount == 0;
[self->_lock unlock];
Expand Down
1 change: 1 addition & 0 deletions SGPlayer/Classes/Core/SGData/SGPacket.m
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ - (void)lock
- (void)unlock
{
[self->_lock lock];
NSAssert(self->_lockingCount > 0, @"SGPacket, Invalid locking count");
self->_lockingCount -= 1;
BOOL comeback = self->_lockingCount == 0;
[self->_lock unlock];
Expand Down
1 change: 0 additions & 1 deletion SGPlayer/Classes/SGPlayerHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ FOUNDATION_EXPORT const unsigned char SGPlayerVersionString[];
#import "SGOptions.h"
#import "SGDemuxerOptions.h"
#import "SGDecoderOptions.h"
#import "SGRendererOptions.h"
#import "SGProcessorOptions.h"

#import "SGAudioDescriptor.h"
Expand Down

0 comments on commit 7db8f9f

Please sign in to comment.