[Mplayer-cvslog] CVS: main/libmpdemux tvi_dummy.c,1.5,1.6

Alex Beregszaszi alex at mplayer.dev.hu
Sat Dec 8 02:22:14 CET 2001


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

Modified Files:
	tvi_dummy.c 
Log Message:
default size 320x200

Index: tvi_dummy.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tvi_dummy.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- tvi_dummy.c	11 Nov 2001 15:45:23 -0000	1.5
+++ tvi_dummy.c	8 Dec 2001 01:22:03 -0000	1.6
@@ -35,6 +35,8 @@
 /* initialisation */
 static int init(priv_t *priv, tvi_param_t *params)
 {
+    priv->width = 320;
+    priv->height = 200;
     return(1);
 }
 
@@ -67,8 +69,14 @@
 	case TVI_CONTROL_VID_SET_WIDTH:
 	    priv->width = (int)*(void **)arg;
 	    return(TVI_CONTROL_TRUE);
+	case TVI_CONTROL_VID_GET_WIDTH:
+	    (int)*(void **)arg = priv->width;
+	    return(TVI_CONTROL_TRUE);
 	case TVI_CONTROL_VID_SET_HEIGHT:
 	    priv->height = (int)*(void **)arg;
+	    return(TVI_CONTROL_TRUE);	    
+	case TVI_CONTROL_VID_GET_HEIGHT:
+	    (int)*(void **)arg = priv->height;
 	    return(TVI_CONTROL_TRUE);	    
 	case TVI_CONTROL_VID_CHK_WIDTH:
 	case TVI_CONTROL_VID_CHK_HEIGHT:




More information about the MPlayer-cvslog mailing list