Skip to content

Commit

Permalink
Fix when m3u8 isMediaPlaylist, Init M3U8MediaPlaylist with self.baseU…
Browse files Browse the repository at this point in the history
…rl always nil (#18)
  • Loading branch information
surrenderios authored and wolfcon committed May 20, 2019
1 parent bcafa7a commit f94404d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion M3U8Kit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |spec|
spec.name = "M3U8Kit"
spec.version = "0.3.0"
spec.version = "0.3.1"
spec.summary = "A light weight m3u8 parser."


Expand Down
2 changes: 1 addition & 1 deletion Source/M3U8PlaylistModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ - (id)initWithString:(NSString *)string originalURL:(NSURL *)originalURL
}

} else if ([string isMediaPlaylist]) {
self.mainMediaPl = [[M3U8MediaPlaylist alloc] initWithContent:string type:M3U8MediaPlaylistTypeMedia baseURL:self.baseURL];
self.mainMediaPl = [[M3U8MediaPlaylist alloc] initWithContent:string type:M3U8MediaPlaylistTypeMedia baseURL:baseURL];
self.mainMediaPl.name = INDEX_PLAYLIST_NAME;
}
}
Expand Down

0 comments on commit f94404d

Please sign in to comment.