diff options
author | Ludwig Nussel <ludwig.nussel@web.de> | 2009-01-04 17:47:54 +0100 |
---|---|---|
committer | Ludwig Nussel <ludwig.nussel@web.de> | 2009-01-04 17:47:54 +0100 |
commit | 67346ce9f69ef46634ad151c9b4d096e59a0d3b8 (patch) | |
tree | 08b2d0c625d379d8ef466d704910c2a48bf101d3 | |
parent | f1a17a0a51826f00e08a818d0fd35da022bce1ab (diff) | |
download | xine-lib-67346ce9f69ef46634ad151c9b4d096e59a0d3b8.tar.gz xine-lib-67346ce9f69ef46634ad151c9b4d096e59a0d3b8.tar.bz2 |
use compiled in default for fifo dir if none specified.
This way one can just run xine vdr://
-rw-r--r-- | src/vdr/input_vdr.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/vdr/input_vdr.c b/src/vdr/input_vdr.c index 29fcd0660..ee4a7fd7a 100644 --- a/src/vdr/input_vdr.c +++ b/src/vdr/input_vdr.c @@ -1704,7 +1704,13 @@ static inline const char *mrl_to_host (const char *mrl) static int vdr_plugin_open_fifo_mrl(input_plugin_t *this_gen) { vdr_input_plugin_t *this = (vdr_input_plugin_t *)this_gen; - char *filename = strdup (mrl_to_fifo (this->mrl)); + char *filename = mrl_to_fifo (this->mrl); + + if(!strcmp(filename, "/")) { + filename = VDR_ABS_FIFO_DIR "/stream"; + } + + filename = strdup(filename); _x_mrl_unescape (filename); this->fh = open(filename, O_RDONLY | O_NONBLOCK); |