summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-18 06:16:37 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-18 06:16:37 +0000
commit78a0719de90a2eb977be4ffc63e40d430c08afbd (patch)
tree5d532776f96362ac3246b56a089d39eab4823a0e
parent0da22f962fd8ee14d7952b8ffc8fe539dfc3ad63 (diff)
downloadmpv-78a0719de90a2eb977be4ffc63e40d430c08afbd.tar.bz2
mpv-78a0719de90a2eb977be4ffc63e40d430c08afbd.tar.xz
Fix crash when pin connection fails.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25088 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--stream/tvi_dshow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/tvi_dshow.c b/stream/tvi_dshow.c
index 2d115032d9..6e30258920 100644
--- a/stream/tvi_dshow.c
+++ b/stream/tvi_dshow.c
@@ -1320,6 +1320,7 @@ static HRESULT build_sub_graph(priv_t * priv, IBaseFilter * pCaptureFilter,
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 * priv, IBaseFilter * pCaptureFilter,
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){