mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +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 =
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue