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

voroshil subversion at mplayerhq.hu
Sun Nov 18 12:36:57 CET 2007


Author: voroshil
Date: Sun Nov 18 12:36:57 2007
New Revision: 25095

Log:
Ensure that when VID_GET_FORMAT ioctl is called,
video chain in graph is ready built.
Otherwise driver can return one format
while graph builder will negotiate another.



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 12:36:57 2007
@@ -3131,6 +3131,11 @@ static int control(priv_t * priv, int cm
 	{
             if(!priv->pmtVideo)
                 return TVI_CONTROL_FALSE;
+	    /*
+	       Build video chain (for video format negotiation).
+	       If this was done before, routine will do nothing.
+	    */
+	    build_video_chain(priv);
 	    DisplayMediaType("VID_GET_FORMAT", priv->pmtVideo);
 	    if (priv->fcc) {
 		*(int *) arg = priv->fcc;



More information about the MPlayer-cvslog mailing list