diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2011-09-09 07:16:06 +0400 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2011-09-16 13:16:05 +0400 |
commit | dd41036a4c39252115b2f22b50d4681fb872369a (patch) | |
tree | 5a2a9c601e2ef26682e4ebc78a048fb273a44b6f /libavdevice/dshow_filter.c | |
parent | 0b951d103dbf105c025d382b51014a91dffb5f4c (diff) |
dshow: cleanup internal references on capture interface
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'libavdevice/dshow_filter.c')
-rw-r--r-- | libavdevice/dshow_filter.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavdevice/dshow_filter.c b/libavdevice/dshow_filter.c index e5a3be854b..64e8306536 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) |