Added wait for stream on metadata read for non-DTSC VoD files.

This commit is contained in:
Thulinma 2014-04-30 16:11:28 +02:00
parent d7ad0b3207
commit b40b56475e

View file

@ -125,6 +125,11 @@ namespace Controller {
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);
}
//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";