X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavdevice%2Fdshow_filter.c;h=64e8306536c49aaee5aca50489debde539677bbb;hb=f0a7b67a356def037d26f9460b22c86d82be2b89;hp=e5a3be854b508b99cc0340056fea5e4af5e6e702;hpb=1d186e9e120d777cc9f5e68d2974d48bfbdd528e;p=ffmpeg diff --git a/libavdevice/dshow_filter.c b/libavdevice/dshow_filter.c index e5a3be854b5..64e8306536c 100644 --- a/libavdevice/dshow_filter.c +++ b/libavdevice/dshow_filter.c @@ -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)