diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-08-20 19:27:24 -0400 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-21 14:21:10 +0200 |
commit | 5edf8b118d9f1e00389b7a8fc9f43bc873698399 (patch) | |
tree | ba319abbc33392bd091c52baf5cb4a04d3d46ac6 /libavformat/hls.c | |
parent | 5176443b2b2e3b5c0ebfde0350e7711f0ab2331c (diff) |
avformat/hls: correct comment for ensure_playlist()
Comment was previously slightly incorrect.
Also, it was placed in the wrong location.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/hls.c')
-rw-r--r-- | libavformat/hls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c index caecbdec9c..82dd744983 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -482,7 +482,9 @@ static void handle_rendition_args(struct rendition_info *info, const char *key, /* used by parse_playlist to allocate a new variant+playlist when the * playlist is detected to be a Media Playlist (not Master Playlist) * and we have no parent Master Playlist (parsing of which would have - * allocated the variant and playlist already) */ + * allocated the variant and playlist already) + * *pls == NULL => Master Playlist or parentless Media Playlist + * *pls != NULL => parented Media Playlist, playlist+variant allocated */ static int ensure_playlist(HLSContext *c, struct playlist **pls, const char *url) { if (*pls) @@ -493,8 +495,6 @@ static int ensure_playlist(HLSContext *c, struct playlist **pls, const char *url return 0; } -/* pls = NULL => Master Playlist or parentless Media Playlist - * pls = !NULL => parented Media Playlist, playlist+variant allocated */ static int open_in(HLSContext *c, AVIOContext **in, const char *url) { AVDictionary *tmp = NULL; |