From 2031742fe961dc385eced342e45188592efecccc Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 15 Apr 2014 13:28:29 +0200 Subject: [PATCH] Fixed controller not checking dtsh files. --- src/controller/controller_streams.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/controller/controller_streams.cpp b/src/controller/controller_streams.cpp index b9284858..ed1f370f 100644 --- a/src/controller/controller_streams.cpp +++ b/src/controller/controller_streams.cpp @@ -125,7 +125,10 @@ namespace Controller { if ((URL.substr(URL.size() - 5) != ".dtsc") && (stat((URL+".dtsh").c_str(), &fileinfo) != 0)){ Util::Stream::getVod(URL, name); } - //now, run mistinfo on the source - which will read the file or the header, depending on what is the right thing to do. + //now, run mistinfo on the source - or on the accompanying dtsh file, if it exists + if (stat((URL+".dtsh").c_str(), &fileinfo) == 0){ + URL += ".dtsh"; + } char * tmp_cmd[3] = {0, 0, 0}; std::string mistinfo = Util::getMyPath() + "MistInfo"; tmp_cmd[0] = (char*)mistinfo.c_str();