dshow: release pin on disconnect
authorRamiro Polla <ramiro.polla@gmail.com>
Fri, 9 Sep 2011 03:15:54 +0000 (00:15 -0300)
committerStefano Sabatini <stefasab@gmail.com>
Fri, 16 Sep 2011 09:16:05 +0000 (11:16 +0200)
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
libavdevice/dshow_pin.c

index f31ecc6..5e14108 100644 (file)
@@ -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;