]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/dshow_filter.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavdevice / dshow_filter.c
index e5a3be854b508b99cc0340056fea5e4af5e6e702..64e8306536c49aaee5aca50489debde539677bbb 100644 (file)
@@ -191,6 +191,12 @@ libAVFilter_Setup(libAVFilter *this, void *priv_data, void *callback,
 
     return 1;
 }
+static int
+libAVFilter_Cleanup(libAVFilter *this)
+{
+    libAVPin_Release(this->pin);
+    return 1;
+}
 DECLARE_CREATE(libAVFilter, libAVFilter_Setup(this, priv_data, callback, type),
                void *priv_data, void *callback, enum dshowDeviceType type)
-DECLARE_DESTROY(libAVFilter, nothing)
+DECLARE_DESTROY(libAVFilter, libAVFilter_Cleanup)