[MPlayer-cvslog] r25121 - trunk/stream/tvi_dshow.c

voroshil subversion at mplayerhq.hu
Tue Nov 20 18:19:17 CET 2007


Author: voroshil
Date: Tue Nov 20 18:19:16 2007
New Revision: 25121

Log:
Fix mplayer crash caused by r25116


Modified:
   trunk/stream/tvi_dshow.c

Modified: trunk/stream/tvi_dshow.c
==============================================================================
--- trunk/stream/tvi_dshow.c	(original)
+++ trunk/stream/tvi_dshow.c	Tue Nov 20 18:19:16 2007
@@ -2146,6 +2146,16 @@ static HRESULT get_available_formats_pin
     if (!pBuilder || !chain->pCaptureFilter)
 	return E_POINTER;
 
+    if (!chain->pCapturePin)
+    {
+        hr = OLE_CALL_ARGS(pBuilder, FindPin,
+    		   (IUnknown *) chain->pCaptureFilter,
+    		   PINDIR_OUTPUT, &PIN_CATEGORY_CAPTURE,
+    		   chain->majortype, FALSE, 0, &chain->pCapturePin);
+
+        if (!chain->pCapturePin)
+            return E_POINTER;
+    }
     if (chain->type == video) {
 	size = sizeof(VIDEO_STREAM_CONFIG_CAPS);
     } else if (chain->type == audio) {



More information about the MPlayer-cvslog mailing list