summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/open.c1
-rw-r--r--libmpdemux/stream_file.c4
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 = {