[Mplayer-cvslog] CVS: main/libmpdemux tvi_dummy.c,1.2,1.3

Alex Beregszaszi alex at mplayer.dev.hu
Sun Nov 11 03:21:00 CET 2001


Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv4078

Modified Files:
	tvi_dummy.c 
Log Message:
fix

Index: tvi_dummy.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tvi_dummy.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- tvi_dummy.c	10 Nov 2001 23:31:09 -0000	1.2
+++ tvi_dummy.c	11 Nov 2001 02:20:57 -0000	1.3
@@ -55,6 +55,13 @@
 	case TVI_CONTROL_VID_GET_FORMAT:
 	    (int)*(void **)arg = IMGFMT_YV12;
 	    return(TVI_CONTROL_TRUE);
+	case TVI_CONTROL_VID_SET_FORMAT:
+	{
+	    int req_fmt = (int)*(void **)arg;
+	    if (req_fmt != IMGFMT_YV12)
+		return(TVI_CONTROL_FALSE);
+	    return(TVI_CONTROL_TRUE);
+	}
 	case TVI_CONTROL_VID_SET_WIDTH:
 	    priv->width = (int)*(void **)arg;
 	    return(TVI_CONTROL_TRUE);




More information about the MPlayer-cvslog mailing list