summaryrefslogtreecommitdiffstats
path: root/demux/demux_cue.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-18 21:10:43 +0100
committerwm4 <wm4@nowhere>2015-02-18 21:12:57 +0100
commit102946ee0358924f22477435114785bd1f901ade (patch)
tree041231408c3ae32bee50902f700d68dd4fea55eb /demux/demux_cue.c
parent37a0c9140ad85be8d184b626759f8d24ca69aa83 (diff)
downloadmpv-102946ee0358924f22477435114785bd1f901ade.tar.bz2
mpv-102946ee0358924f22477435114785bd1f901ade.tar.xz
player: enable cache and demuxer thread for subtitles too
Includes some logic for not starting the demuxer thread for fully read subtitles. (Well, the cache will still waste _lots_ of resources, and the cache always has to be created, because we don't know whether it'll be needed _before_ opening the file.) See #1597.
Diffstat (limited to 'demux/demux_cue.c')
-rw-r--r--demux/demux_cue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/demux_cue.c b/demux/demux_cue.c
index 969c3ebb84..db70586b16 100644
--- a/demux/demux_cue.c
+++ b/demux/demux_cue.c
@@ -433,6 +433,7 @@ static int try_open_file(struct demuxer *demuxer, enum demux_check check)
}
struct priv *p = talloc_zero(demuxer, struct priv);
demuxer->priv = p;
+ demuxer->fully_read = true;
p->data = stream_read_complete(s, demuxer, 1000000);
if (p->data.start == NULL)
return -1;