[FFmpeg-cvslog] dshow: release pin on disconnect

Ramiro Polla git at videolan.org
Fri Sep 16 11:18:19 CEST 2011


ffmpeg | branch: master | Ramiro Polla <ramiro.polla at gmail.com> | Fri Sep  9 00:15:54 2011 -0300| [0b951d103dbf105c025d382b51014a91dffb5f4c] | committer: Stefano Sabatini

dshow: release pin on disconnect

Signed-off-by: Stefano Sabatini <stefasab at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0b951d103dbf105c025d382b51014a91dffb5f4c
---

 libavdevice/dshow_pin.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavdevice/dshow_pin.c b/libavdevice/dshow_pin.c
index f31ecc6..5e14108 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;



More information about the ffmpeg-cvslog mailing list