Fixed stream-less builtin files loading correctly.

This commit is contained in:
Thulinma 2014-12-13 14:58:32 +01:00
parent 3030be0384
commit fac1727e10

View file

@ -227,6 +227,9 @@ namespace Mist {
if (streamIndex.mapped){
return;
}
if (streamName.size() < 1){
return; //abort - no stream to initialize...
}
if (!Util::startInput(streamName)){
DEBUG_MSG(DLVL_FAIL, "Opening stream disallowed - aborting initalization");
onFail();