summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-17 22:56:19 +0200
committerwm4 <wm4@nowhere>2015-04-17 23:02:14 +0200
commit1d36955f70d27b5de6d323f23b94034221db0890 (patch)
tree21261d593be61fcb69eca1bcfb9b3dbb0d092f7d /stream/stream.h
parent01cfcd68142d72f4805db9a033cdd63106bae6cc (diff)
downloadmpv-1d36955f70d27b5de6d323f23b94034221db0890.tar.bz2
mpv-1d36955f70d27b5de6d323f23b94034221db0890.tar.xz
player: allow playing directories
If a directory is encountered, replace it with its contents in the internal playlist. This is messed into demux_playlist.c, because why not. STREAMTYPE_DIR could be avoided by unconditonally trying opendir() in demux_playlist.c, but it seems nicer not to do weird things like calling it on real files. This does not work on Windows, because msvcrt is retarded.
Diffstat (limited to 'stream/stream.h')
-rw-r--r--stream/stream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h
index 387006cb8f..7b4751450c 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -31,6 +31,7 @@
enum streamtype {
STREAMTYPE_GENERIC = 0,
STREAMTYPE_FILE,
+ STREAMTYPE_DIR,
STREAMTYPE_DVB,
STREAMTYPE_DVD,
STREAMTYPE_BLURAY,