diff options
author | wm4 <wm4@nowhere> | 2012-11-13 21:52:24 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-14 00:46:15 +0100 |
commit | a2098326dac3587fb6f0869e515c07d1f9c762f8 (patch) | |
tree | 06973ec7e968460dc5ac37d31cd169b6e1e4175e /TOOLS | |
parent | dbb4a973d5b265130df178ca62c094ec7c45ce47 (diff) | |
download | mpv-a2098326dac3587fb6f0869e515c07d1f9c762f8.tar.bz2 mpv-a2098326dac3587fb6f0869e515c07d1f9c762f8.tar.xz |
network: fix crash with -playlist http://...
The function fixup_network_stream_cache() accesses stream->opts, which
is NULL in some cases when loading playlists. stream->opts is a pointer
to the global MPOpts struct. For simplicity, this parameter is left
NULL in some cases. Usually, this doesn't matter, because barely
anything in stream/ uses MPOpts anyway.
Hack-fix this for now by not accessing MPOpts and disabling the stream
cache in this case. Calling open_stream() with options==NULL now
basically means: do not use cache settings.
Diffstat (limited to 'TOOLS')
0 files changed, 0 insertions, 0 deletions