diff options
author | wm4 <wm4@nowhere> | 2019-12-23 11:09:42 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-12-23 11:09:42 +0100 |
commit | 36da3325a3ee51a22c21ebc6492f243fafc3c95f (patch) | |
tree | 512deaa94e9a2836c645490de8d76d529619ec4b /DOCS | |
parent | af6652004d5f712e140996a17c683d437f4b8bb3 (diff) | |
download | mpv-36da3325a3ee51a22c21ebc6492f243fafc3c95f.tar.bz2 mpv-36da3325a3ee51a22c21ebc6492f243fafc3c95f.tar.xz |
demux: stop setting dummy stream on demux_close_stream()
Demuxers can call demux_close_stream() to close the underlying stream if
it's not needed anymore. (Useful to release "heavy" resources like FDs
and sockets. Plus merely keeping a file open can have visible side
effects such as inability to unmount a filesystem or, on Windows, to do
anything with the file.)
Until now, this set demuxer->stream to a dummy stream, because most code
used to assume that the stream field is non-NULL. But this requirement
disappeared (in some cases, the stream field is already NULL), so stop
doing that. demux_lavf.c, one of the demuxers which calls this function,
still had some of this, though.
Diffstat (limited to 'DOCS')
0 files changed, 0 insertions, 0 deletions