From 3fc3bf70f972f4e68258193f0f9c70ee6b85be5e Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 25 Aug 2013 22:58:29 +0200 Subject: 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. --- stream/stream.h | 1 + 1 file changed, 1 insertion(+) (limited to 'stream/stream.h') 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 */ -- cgit v1.2.3