summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-08-25 22:58:29 +0200
committerwm4 <wm4@nowhere>2013-08-26 10:09:46 +0200
commit3fc3bf70f972f4e68258193f0f9c70ee6b85be5e (patch)
tree7c953cee512669da24d83c1b6ffefce74f3ddc53 /stream/stream.h
parent74b846e2f7d95e4dea2fdae4b1301a2c83f2acd3 (diff)
downloadmpv-3fc3bf70f972f4e68258193f0f9c70ee6b85be5e.tar.bz2
mpv-3fc3bf70f972f4e68258193f0f9c70ee6b85be5e.tar.xz
stream: add uncompressed rar support
Apparently, it is popular to store large files in uncompressed rar archives. Extracting files is not practical, and some media players suport playing directly from uncompressed rar (at least VLC and some DirectShow components). Storing or accessing files this way is completely idiotic, but it is a common practice, and the ones subjected to this practice can't do much to change this (at least that's what I assume/hope). Also, it's a feature request, so we say yes. This code is mostly taken from VLC (commit f6e7240 from their git tree). We also copy the way this is done: opening a rar file by itself yields a playlist, which contains URLs to the actual entries in the rar file. Compressed entries are simply skipped.
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 6f389ceb04..525265b52c 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -271,5 +271,6 @@ typedef struct {
} stream_language_t;
void mp_url_unescape_inplace(char *buf);
+char *mp_url_escape(void *talloc_ctx, const char *s, const char *ok);
#endif /* MPLAYER_STREAM_H */