From 67346ce9f69ef46634ad151c9b4d096e59a0d3b8 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Sun, 4 Jan 2009 17:47:54 +0100 Subject: use compiled in default for fifo dir if none specified. This way one can just run xine vdr:// --- src/vdr/input_vdr.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3