decklinkaudiosrc: Don't release input device twice on errors in set_caps()
authorSebastian Dröge <sebastian@centricular.com>
Mon, 26 Jan 2015 17:27:10 +0000 (18:27 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 28 Jan 2015 15:13:16 +0000 (16:13 +0100)
sys/decklink/gstdecklinkaudiosrc.cpp

index 2caf661e11568503329a96c77b23cb1c42e707d8..f46076e027a51c0826dc78c4a7f882059d4cbb14 100644 (file)
@@ -376,8 +376,6 @@ gst_decklink_audio_src_set_caps (GstBaseSrc * bsrc, GstCaps * caps)
       sample_depth, 2);
   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), TRUE);
     return FALSE;
   }