mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
dshow: cleanup internal references on capture interface
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
This commit is contained in:
parent
0b951d103d
commit
dd41036a4c
2 changed files with 14 additions and 2 deletions
|
|
@ -94,6 +94,12 @@ libAVEnumPins_Setup(libAVEnumPins *this, libAVPin *pin, libAVFilter *filter)
|
|||
|
||||
return 1;
|
||||
}
|
||||
static int
|
||||
libAVEnumPins_Cleanup(libAVEnumPins *this)
|
||||
{
|
||||
libAVFilter_Release(this->filter);
|
||||
return 1;
|
||||
}
|
||||
DECLARE_CREATE(libAVEnumPins, libAVEnumPins_Setup(this, pin, filter),
|
||||
libAVPin *pin, libAVFilter *filter)
|
||||
DECLARE_DESTROY(libAVEnumPins, nothing)
|
||||
DECLARE_DESTROY(libAVEnumPins, libAVEnumPins_Cleanup)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue