Disabled stream starting from the controller for mac and windows versions.
This commit is contained in:
parent
625543d0ef
commit
c5f6956766
1 changed files with 2 additions and 0 deletions
|
@ -114,6 +114,7 @@ namespace Controller {
|
||||||
// if the file isn't dtsc and there's no dtsh file, run getStream on it
|
// if the file isn't dtsc and there's no dtsh file, run getStream on it
|
||||||
// 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.
|
||||||
DEBUG_MSG(DLVL_INSANE, "(re)loading metadata for stream %s", name.c_str());
|
DEBUG_MSG(DLVL_INSANE, "(re)loading metadata for stream %s", name.c_str());
|
||||||
|
#if !defined(__APPLE__) && !defined(__MACH__) && !defined(__CYGWIN__)
|
||||||
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)){
|
||||||
DEBUG_MSG(DLVL_INSANE, "Stream %s is non-DTSC file without DTSH. Opening stream to generate DTSH...", name.c_str());
|
DEBUG_MSG(DLVL_INSANE, "Stream %s is non-DTSC file without DTSH. Opening stream to generate DTSH...", name.c_str());
|
||||||
Util::Stream::getVod(URL, name);
|
Util::Stream::getVod(URL, name);
|
||||||
|
@ -135,6 +136,7 @@ namespace Controller {
|
||||||
}
|
}
|
||||||
DEBUG_MSG(DLVL_INSANE, "Stream %s opened", name.c_str());
|
DEBUG_MSG(DLVL_INSANE, "Stream %s opened", name.c_str());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
//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){
|
||||||
DEBUG_MSG(DLVL_INSANE, "Stream %s has a DTSH - opening DTSH instead of main stream file", name.c_str());
|
DEBUG_MSG(DLVL_INSANE, "Stream %s has a DTSH - opening DTSH instead of main stream file", name.c_str());
|
||||||
|
|
Loading…
Add table
Reference in a new issue