avdevice/decklink_enc: convert to std::atomic
[ffmpeg.git] / libavdevice / dshow_filter.c
index e5a3be8..db4bff6 100644 (file)
@@ -19,7 +19,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "dshow.h"
+#include "dshow_capture.h"
 
 DECLARE_QUERYINTERFACE(libAVFilter,
     { {&IID_IUnknown,0}, {&IID_IBaseFilter,0} })
@@ -157,9 +157,7 @@ libAVFilter_QueryVendorInfo(libAVFilter *this, wchar_t **info)
 
     if (!info)
         return E_POINTER;
-    *info = wcsdup(L"libAV");
-
-    return S_OK;
+    return E_NOTIMPL; /* don't have to do anything here */
 }
 
 static int
@@ -191,6 +189,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)