mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
cf5cd85a3b
commit
e47dbaed07
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ gst_decklink_sink_start (GstDecklinkSink * decklinksink)
|
||||||
|
|
||||||
decklinksink->output =
|
decklinksink->output =
|
||||||
gst_decklink_get_nth_output (decklinksink->device_number);
|
gst_decklink_get_nth_output (decklinksink->device_number);
|
||||||
if (!decklinksink->decklink) {
|
if (!decklinksink->output) {
|
||||||
GST_WARNING ("no output for device %d", decklinksink->device_number);
|
GST_WARNING ("no output for device %d", decklinksink->device_number);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue