Merge pull request #2440 from cg2121/fix-decklink-crash

Decklink: Fix crash when no device selected
This commit is contained in:
Jim 2020-02-27 00:20:08 -08:00 committed by GitHub
commit eeb2a7b7a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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