decklinksink: Check the correct variable for failure

If we can't get an output, we would otherwise just use it later and crash.
This commit is contained in:
Sebastian Dröge 2014-11-11 12:00:30 +01:00
parent cf5cd85a3b
commit e47dbaed07

View file

@ -336,7 +336,7 @@ gst_decklink_sink_start (GstDecklinkSink * decklinksink)
decklinksink->output =
gst_decklink_get_nth_output (decklinksink->device_number);
if (!decklinksink->decklink) {
if (!decklinksink->output) {
GST_WARNING ("no output for device %d", decklinksink->device_number);
return FALSE;
}