Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo didChcnageCurrentTime -> didChangeCurrentTime #132

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SGPlayer/Classes/Core/SGRenderer/SGClock+Internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@
/**
*
*/
- (void)clock:(SGClock *)clock didChcnageCurrentTime:(CMTime)currentTime;
- (void)clock:(SGClock *)clock didChangeCurrentTime:(CMTime)currentTime;

@end
4 changes: 2 additions & 2 deletions SGPlayer/Classes/Core/SGRenderer/SGClock.m
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ - (void)setAudioTime:(CMTime)time running:(BOOL)running
CMTimebaseSetTime(self->_audioTimebase, time);
CMTimebaseSetTime(self->_videoTimebase, time);
}
[self.delegate clock:self didChcnageCurrentTime:time];
[self.delegate clock:self didChangeCurrentTime:time];
} else if (self->_audioRunning != running) {
self->_audioRunning = running;
CMTimebaseSetRate(self->_audioTimebase, running ? 1.0 : 0.0);
Expand All @@ -101,7 +101,7 @@ - (void)setVideoTime:(CMTime)time
CMTimebaseSetTime(self->_videoTimebase, time);
CMTimebaseSetRate(self->_videoTimebase, 1.0);
}
[self.delegate clock:self didChcnageCurrentTime:time];
[self.delegate clock:self didChangeCurrentTime:time];
});
}

Expand Down
2 changes: 1 addition & 1 deletion SGPlayer/Classes/SGPlayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ - (BOOL)seekToTime:(CMTime)time toleranceBefor:(CMTime)toleranceBefor toleranceA

#pragma mark - SGClockDelegate

- (void)clock:(SGClock *)clock didChcnageCurrentTime:(CMTime)currentTime
- (void)clock:(SGClock *)clock didChangeCurrentTime:(CMTime)currentTime
{
SGLockEXE10(self->_lock, ^SGBlock {
SGInfoAction action = SGInfoActionNone;
Expand Down