aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2011-09-09 00:15:54 -0300
committerStefano Sabatini <stefasab@gmail.com>2011-09-16 11:16:05 +0200
commit0b951d103dbf105c025d382b51014a91dffb5f4c (patch)
treedb4435bb6f72eb27c5943b0b3e01d42136650723 /libavdevice
parentc7807eeb781c79b60d039d073387b2490861e8b0 (diff)
downloadffmpeg-0b951d103dbf105c025d382b51014a91dffb5f4c.tar.gz
dshow: release pin on disconnect
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/dshow_pin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavdevice/dshow_pin.c b/libavdevice/dshow_pin.c
index f31ecc6c99..5e14108092 100644
--- a/libavdevice/dshow_pin.c
+++ b/libavdevice/dshow_pin.c
@@ -73,6 +73,7 @@ libAVPin_Disconnect(libAVPin *this)
return VFW_E_NOT_STOPPED;
if (!this->connectedto)
return S_FALSE;
+ IPin_Release(this->connectedto);
this->connectedto = NULL;
return S_OK;