summaryrefslogtreecommitdiffstats
path: root/demux/demux.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-17 21:45:17 +0200
committerwm4 <wm4@nowhere>2018-05-24 19:56:35 +0200
commita0cce7f775e97aa364d166c278c49df1325e6cc7 (patch)
tree615873f40b29753c5bb13b884f9a7762e2356806 /demux/demux.c
parenta253c72dbb0fedf3b83f2f20f1f311c40551a6b1 (diff)
downloadmpv-a0cce7f775e97aa364d166c278c49df1325e6cc7.tar.bz2
mpv-a0cce7f775e97aa364d166c278c49df1325e6cc7.tar.xz
stream_file: use a separate mp_cancel thing
The intention is to avoid that the parent mp_cancel retains the internally allocated wakeup pipe. File FDs are a relatively scarce resource, so try to avoid having too many. This might matter for subtitle files, for which it is relatively likely that they are loaded in large quantities. demux_lavf.c will close the underlying stream for most subtitle files, and now it will free the wakeup pipe too. Actually, there are currently only 1 or 2 mp_cancel objects per mpv core, but this could change if every external subtitle track gets its own mp_cancel in later commits.
Diffstat (limited to 'demux/demux.c')
0 files changed, 0 insertions, 0 deletions