lavf/hls: replace the same code logic with ensure_playlist()
authorvacingfang <vacingfang@tencent.com>
Sun, 21 Jul 2019 13:55:47 +0000 (21:55 +0800)
committerJun Zhao <barryjzhao@tencent.com>
Fri, 26 Jul 2019 01:39:47 +0000 (09:39 +0800)
commitd83a3117e2f0b17a7742ec16d8fb39cddc272375
treee22e43ef0b9f468c70ff363d009d04b3dceb1a17
parent606be4cb503a936a5fc5ecdaa0674164a611f701
lavf/hls: replace the same code logic with ensure_playlist()

Replace the same code logic with ensure_playlist(), it's will
help reusable blocks of code.

Reviewed-by: Jun Zhao <barryjzhao@tencent.com>
Signed-off-by: vacingfang <vacingfang@tencent.com>
libavformat/hls.c