# HG changeset patch # User voroshil # Date 1195366597 0 # Node ID 96c96edb3d2f6f19e8ee7657608871d0eb626f77 # Parent 501f31700e7733708c3cc9e103a409e30dc7a63a Fix crash when pin connection fails. diff -r 501f31700e77 -r 96c96edb3d2f stream/tvi_dshow.c --- a/stream/tvi_dshow.c Sun Nov 18 05:20:17 2007 +0000 +++ b/stream/tvi_dshow.c Sun Nov 18 06:16:37 2007 +0000 @@ -1320,6 +1320,7 @@ ISampleGrabber *pSG = NULL; hr=S_OK; + CopyMediaType(&conn_mt, pmt); do{ hr = OLE_CALL_ARGS(priv->pBuilder, FindPin, (IUnknown *) pCaptureFilter, @@ -1402,7 +1403,6 @@ 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){