diff --git a/SGPlayer/Classes/Core/SGSession/SGFrameOutput.m b/SGPlayer/Classes/Core/SGSession/SGFrameOutput.m index 8a51098d..d17a159c 100644 --- a/SGPlayer/Classes/Core/SGSession/SGFrameOutput.m +++ b/SGPlayer/Classes/Core/SGSession/SGFrameOutput.m @@ -287,8 +287,8 @@ - (void)packetOutput:(SGPacketOutput *)packetOutput didChangeState:(SGPacketOutp case SGPacketOutputStateFinished: { NSArray *tracks = self->_selectedTracks; b1 = ^{ - [self->_audioDecoder finish:tracks]; - [self->_videoDecoder finish:tracks]; + [self->_audioDecoder finish:[SGTrack tracksWithTracks:tracks type:SGMediaTypeAudio]]; + [self->_videoDecoder finish:[SGTrack tracksWithTracks:tracks type:SGMediaTypeVideo]]; }; } break;