Skip to content

Commit

Permalink
(ios) fix crash when media is loaded without metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Lindsay-Needs-Sleep committed Nov 28, 2020
1 parent 0250501 commit 94aa4a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ios/MLPCastUtilities.m
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ + (GCKMediaTextTrackStyle *)buildTextTrackStyle:(NSDictionary *)data {
}

+(GCKMediaMetadata*)buildMediaMetadata:(NSDictionary*)data {
if ([data isEqual:[NSNull null]] || data == nil) {
return nil;
}
GCKMediaMetadata* mediaMetaData = [[GCKMediaMetadata alloc] initWithMetadataType:GCKMediaMetadataTypeGeneric];

if (data[@"metadataType"]) {
Expand Down

0 comments on commit 94aa4a6

Please sign in to comment.