avformat/hls: copy rw_timeout from parent to child AVIOContexts.
authorRichard Shaffer <rshaffer@tunein.com>
Tue, 17 Apr 2018 06:39:26 +0000 (14:39 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Tue, 17 Apr 2018 06:39:26 +0000 (14:39 +0800)
commit6a1be7561c870a8cd3cee86a57aabdffb19e3870
tree893bb09d1d219f72f56d64481cca8652572a8042
parent9e2b4c7ecc3014310d01e918800f7f7f36596598
avformat/hls: copy rw_timeout from parent to child AVIOContexts.

The rw_timeout option is currently not applied when opening media playlist,
segment, or encryption key URLs. This can cause the HLS demuxer to block
indefinitely, even when the rw_timeout option has been specified. This change
simply enables carrying over the rw_timeout option when the demuxer opens these
URLs.

Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Richard Shaffer <rshaffer@tunein.com>
libavformat/hls.c