diff --git a/SGPlayer/Classes/Core/SGData/SGFrame.m b/SGPlayer/Classes/Core/SGData/SGFrame.m index 62f25289..6a57479e 100644 --- a/SGPlayer/Classes/Core/SGData/SGFrame.m +++ b/SGPlayer/Classes/Core/SGData/SGFrame.m @@ -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]; diff --git a/SGPlayer/Classes/Core/SGData/SGPacket.m b/SGPlayer/Classes/Core/SGData/SGPacket.m index b068d953..a780b612 100644 --- a/SGPlayer/Classes/Core/SGData/SGPacket.m +++ b/SGPlayer/Classes/Core/SGData/SGPacket.m @@ -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]; diff --git a/SGPlayer/Classes/SGPlayerHeader.h b/SGPlayer/Classes/SGPlayerHeader.h index f1d23158..e43f4c0c 100644 --- a/SGPlayer/Classes/SGPlayerHeader.h +++ b/SGPlayer/Classes/SGPlayerHeader.h @@ -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"