Skip to content

Commit

Permalink
SGFrameReader: Next frame.
Browse files Browse the repository at this point in the history
  • Loading branch information
libobjc committed Nov 14, 2019
1 parent c3a752b commit d9205d5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SGPlayer/Classes/Core/SGSession/SGFrameReader.m
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,12 @@ - (NSError *)nextFrame:(__kindof SGFrame **)frame
[obj unlock];
}
}
if (ret && frame) {
*frame = ret;
if (ret) {
if (frame) {
*frame = ret;
} else {
[ret unlock];
}
}
return err;
}
Expand Down

0 comments on commit d9205d5

Please sign in to comment.