From b1eebe7aaff060fe6fee700b5c33365cd28c4fd7 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 1 May 2014 16:31:15 +0200 Subject: [PATCH] Fixed long waiting time for .DTSC streams. --- src/controller/controller_streams.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/controller/controller_streams.cpp b/src/controller/controller_streams.cpp index f8eb990d..d0c4c8f0 100644 --- a/src/controller/controller_streams.cpp +++ b/src/controller/controller_streams.cpp @@ -124,11 +124,11 @@ namespace Controller { // this guarantees that if the stream is playable, it now has a valid header. if ((URL.substr(URL.size() - 5) != ".dtsc") && (stat((URL+".dtsh").c_str(), &fileinfo) != 0)){ Util::Stream::getVod(URL, name); - } - //wait for the stream - { - IPC::sharedPage streamIndex; - streamIndex.init(name, 8 * 1024 * 1024); + //wait for the stream + { + IPC::sharedPage streamIndex; + streamIndex.init(name, 8 * 1024 * 1024); + } } //now, run mistinfo on the source - or on the accompanying dtsh file, if it exists if (stat((URL+".dtsh").c_str(), &fileinfo) == 0){