Decklink: Fix crash when no device selected

This commit is contained in:
Clayton Groeneveld 2020-02-27 01:27:46 -06:00
parent ad1f74e312
commit e57d542625

View File

@ -46,6 +46,9 @@ static bool decklink_output_start(void *data)
return false; return false;
} }
if (!decklink->deviceHash || !*decklink->deviceHash)
return false;
decklink->audio_samplerate = aoi.samples_per_sec; decklink->audio_samplerate = aoi.samples_per_sec;
decklink->audio_planes = 2; decklink->audio_planes = 2;
decklink->audio_size = decklink->audio_size =