[Mplayer-cvslog] CVS: main/libmpdemux tvi_dummy.c,1.8,1.9

Alex Beregszaszi alex at mplayerhq.hu
Sun Sep 8 18:06:02 CEST 2002


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

Modified Files:
	tvi_dummy.c 
Log Message:
fixed get_format/set_format

Index: tvi_dummy.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tvi_dummy.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- tvi_dummy.c	12 Apr 2002 10:40:38 -0000	1.8
+++ tvi_dummy.c	8 Sep 2002 16:05:59 -0000	1.9
@@ -58,11 +58,13 @@
 	case TVI_CONTROL_IS_VIDEO:
 	    return(TVI_CONTROL_TRUE);
 	case TVI_CONTROL_VID_GET_FORMAT:
-	    (int)*(void **)arg = IMGFMT_YV12;
+//	    (int)*(void **)arg = IMGFMT_YV12;
+	    *(int *)arg = IMGFMT_YV12;
 	    return(TVI_CONTROL_TRUE);
 	case TVI_CONTROL_VID_SET_FORMAT:
 	{
-	    int req_fmt = (int)*(void **)arg;
+//	    int req_fmt = (int)*(void **)arg;
+	    int req_fmt = *(int *)arg;
 	    if (req_fmt != IMGFMT_YV12)
 		return(TVI_CONTROL_FALSE);
 	    return(TVI_CONTROL_TRUE);




More information about the MPlayer-cvslog mailing list