Fixes #4695
This commit is contained in:
@@ -131,6 +131,9 @@ int getChannelsUsed()
|
|||||||
|
|
||||||
bool isSourceAvailable(int source)
|
bool isSourceAvailable(int source)
|
||||||
{
|
{
|
||||||
|
if (source < 0)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (source>=MIXSRC_FIRST_INPUT && source<=MIXSRC_LAST_INPUT) {
|
if (source>=MIXSRC_FIRST_INPUT && source<=MIXSRC_LAST_INPUT) {
|
||||||
return isInputAvailable(source - MIXSRC_FIRST_INPUT);
|
return isInputAvailable(source - MIXSRC_FIRST_INPUT);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user