Skip to content

Commit

Permalink
Merge branch 'hotfix/7.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
defagos committed Jul 18, 2022
2 parents d97e453 + 2fad687 commit 00ed47f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Demo/Demo.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Version information
MARKETING_VERSION = 7.0.2
MARKETING_VERSION = 7.0.3

// Deployment targets
IPHONEOS_DEPLOYMENT_TARGET = 9.0
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import PackageDescription

struct ProjectSettings {
static let marketingVersion: String = "7.0.2"
static let marketingVersion: String = "7.0.3"
}

let package = Package(
Expand Down
4 changes: 0 additions & 4 deletions Sources/SRGMediaPlayer/SRGMediaPlayerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,6 @@ - (AVPlayerLayer *)playerLayer

- (void)setPlaybackState:(SRGMediaPlayerPlaybackState)playbackState withUserInfo:(NSDictionary *)userInfo
{
NSAssert(NSThread.isMainThread, @"Not the main thread. Ensure important changes must be notified on the main thread. Fix");

if (_playbackState == playbackState) {
return;
}
Expand Down Expand Up @@ -1816,8 +1814,6 @@ - (AVMediaSelectionOption *)selectedOptionForPlayer:(AVPlayer *)player withMedia

- (void)updateTracksForPlayer:(AVPlayer *)player
{
NSAssert(NSThread.isMainThread, @"Expected to be called on the main thread");

AVMediaSelectionOption *audioOption = [self selectedOptionForPlayer:player withMediaCharacteristic:AVMediaCharacteristicAudible];
if (audioOption != self.audioOption && ! [audioOption isEqual:self.audioOption]) {
NSMutableDictionary *userInfo = [NSMutableDictionary dictionary];
Expand Down

0 comments on commit 00ed47f

Please sign in to comment.