decklinkaudiosrc: Release the audio input on errors, not the video input
This commit is contained in:
parent
2b99c2c579
commit
c6d5c4c2e1
@ -377,7 +377,7 @@ gst_decklink_audio_src_set_caps (GstBaseSrc * bsrc, GstCaps * caps)
|
||||
if (ret != S_OK) {
|
||||
GST_WARNING_OBJECT (self, "Failed to enable audio input");
|
||||
gst_decklink_release_nth_input (self->device_number,
|
||||
GST_ELEMENT_CAST (self), FALSE);
|
||||
GST_ELEMENT_CAST (self), TRUE);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user