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

voroshil subversion at mplayerhq.hu
Sun Nov 18 07:16:37 CET 2007


Author: voroshil
Date: Sun Nov 18 07:16:37 2007
New Revision: 25088

Log:
Fix crash when pin connection fails.



Modified:
   trunk/stream/tvi_dshow.c

Modified: trunk/stream/tvi_dshow.c
==============================================================================
--- trunk/stream/tvi_dshow.c	(original)
+++ trunk/stream/tvi_dshow.c	Sun Nov 18 07:16:37 2007
@@ -1320,6 +1320,7 @@ static HRESULT build_sub_graph(priv_t * 
     ISampleGrabber *pSG = NULL;
 
     hr=S_OK;
+    CopyMediaType(&conn_mt, pmt);
     do{
         hr = OLE_CALL_ARGS(priv->pBuilder, FindPin,
     		   (IUnknown *) pCaptureFilter,
@@ -1402,7 +1403,6 @@ static HRESULT build_sub_graph(priv_t * 
         if(FAILED(hr))
         {
             mp_msg(MSGT_TV, MSGL_WARN, MSGTR_TVI_DS_GetActualMediatypeFailed, (unsigned int)hr);
-            CopyMediaType(&conn_mt, pmt);
         }
 
         if(priv->tv_param->hidden_video_renderer){



More information about the MPlayer-cvslog mailing list