diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-05-14 08:15:37 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-05-14 08:15:37 +0000 |
commit | f6df520b8e3b6c87dd5f22a1ad5b1184062c0300 (patch) | |
tree | 17ad2ae08b919d9251fa11a8bf4910c0342c29e8 /libmpdemux | |
parent | 86830611e17847120730df13c32836217f62cc06 (diff) | |
download | mpv-f6df520b8e3b6c87dd5f22a1ad5b1184062c0300.tar.bz2 mpv-f6df520b8e3b6c87dd5f22a1ad5b1184062c0300.tar.xz |
make file:// prefix work
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15453 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/open.c | 1 | ||||
-rw-r--r-- | libmpdemux/stream_file.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libmpdemux/open.c b/libmpdemux/open.c index 2222f3addc..216f5a2795 100644 --- a/libmpdemux/open.c +++ b/libmpdemux/open.c @@ -497,6 +497,7 @@ if(strncmp("dvd://",filename,6) == 0){ strncmp("vcd://", filename, 6) && strncmp("dvb://", filename, 6) && strncmp("cdda://", filename, 7) && strncmp("cddb://", filename, 7) && strncmp("mpst://", filename, 7) && strncmp("tivo://", filename, 7) && + strncmp("file://", filename, 7) && strstr(filename, "://")) { url = url_new(filename); } diff --git a/libmpdemux/stream_file.c b/libmpdemux/stream_file.c index 05197c2480..6fcca8c7ba 100644 --- a/libmpdemux/stream_file.c +++ b/libmpdemux/stream_file.c @@ -14,14 +14,16 @@ static struct stream_priv_s { char* filename; + char* dummy_hostname; } stream_priv_dflts = { - NULL + NULL, NULL }; #define ST_OFF(f) M_ST_OFF(struct stream_priv_s,f) /// URL definition static m_option_t stream_opts_fields[] = { {"filename", ST_OFF(filename), CONF_TYPE_STRING, 0, 0 ,0, NULL}, + {"hostname", ST_OFF(dummy_hostname), CONF_TYPE_STRING, 0, 0, 0, NULL }, { NULL, NULL, 0, 0, 0, 0, NULL } }; static struct m_struct_st stream_opts = { |