Fixed long waiting time for .DTSC streams.
This commit is contained in:
parent
52f148cee5
commit
b1eebe7aaf
1 changed files with 5 additions and 5 deletions
|
@ -124,12 +124,12 @@ namespace Controller {
|
||||||
// this guarantees that if the stream is playable, it now has a valid header.
|
// 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)){
|
if ((URL.substr(URL.size() - 5) != ".dtsc") && (stat((URL+".dtsh").c_str(), &fileinfo) != 0)){
|
||||||
Util::Stream::getVod(URL, name);
|
Util::Stream::getVod(URL, name);
|
||||||
}
|
|
||||||
//wait for the stream
|
//wait for the stream
|
||||||
{
|
{
|
||||||
IPC::sharedPage streamIndex;
|
IPC::sharedPage streamIndex;
|
||||||
streamIndex.init(name, 8 * 1024 * 1024);
|
streamIndex.init(name, 8 * 1024 * 1024);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//now, run mistinfo on the source - or on the accompanying dtsh file, if it exists
|
//now, run mistinfo on the source - or on the accompanying dtsh file, if it exists
|
||||||
if (stat((URL+".dtsh").c_str(), &fileinfo) == 0){
|
if (stat((URL+".dtsh").c_str(), &fileinfo) == 0){
|
||||||
URL += ".dtsh";
|
URL += ".dtsh";
|
||||||
|
|
Loading…
Add table
Reference in a new issue