--- /root/vdradmind.orig 2012-04-19 22:47:04.087998411 +0200 +++ /usr/bin/vdradmind 2012-04-19 23:45:57.118031121 +0200 @@ -198,6 +198,7 @@ $CONFIG{ST_LIVE_ON} = 1; $CONFIG{ST_URL} = ""; $CONFIG{ST_STREAMDEV_HOST} = ""; # streamdev/xineliboutput host +$CONFIG{ST_STREAMDEV_PATH} = ""; $CONFIG{ST_STREAMDEV_PORT} = 3000; $CONFIG{ST_XINELIB_PORT} = 37890; $CONFIG{ST_VIDEODIR} = ""; @@ -5193,7 +5194,11 @@ } if ($FEATURES{STREAMDEV}) { $url->port($CONFIG{ST_STREAMDEV_PORT}); - $url->path($channel); + if ($CONFIG{ST_STREAMDEV_PATH}) { + $url->path($CONFIG{ST_STREAMDEV_PATH} . $channel); + } else { + $url->path($channel); + } } elsif ($FEATURES{XINELIB}) { $url->port($CONFIG{ST_XINELIB_PORT}); # No channel support in xineliboutput URLs, need to switch here @@ -6935,7 +6940,11 @@ my $data = ""; foreach (sort({ $a->{vdr_id} <=> $b->{vdr_id} } (@{$CHAN{$wanted}->{channels}}))) { - $url->path($_->{uniq_id}); + if ($CONFIG{ST_STREAMDEV_PATH}) { + $url->path($CONFIG{ST_STREAMDEV_PATH} . $_->{uniq_id}); + } else { + $url->path($_->{uniq_id}); + } $data .= sprintf("#EXTINF:0,%s\n%s\n", $_->{name}, $url); } return (header("200", $CONFIG{TV_MIMETYPE}, $data, sprintf("%s.%s", $filenames[$wanted], $CONFIG{TV_EXT}) ));