mirror of https://github.com/mpv-player/mpv
make file:// prefix work
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15453 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
86830611e1
commit
f6df520b8e
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue