Skip to content

Commit

Permalink
SGFrameOutput: Call finish.
Browse files Browse the repository at this point in the history
  • Loading branch information
libobjc committed Nov 28, 2019
1 parent a1373cb commit caf6840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SGPlayer/Classes/Core/SGSession/SGFrameOutput.m
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ - (void)packetOutput:(SGPacketOutput *)packetOutput didChangeState:(SGPacketOutp
case SGPacketOutputStateFinished: {
NSArray<SGTrack *> *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;
Expand Down

0 comments on commit caf6840

Please sign in to comment.