changeset 3375:5fb624943c90

default size 320x200
author alex
date Sat, 08 Dec 2001 01:22:03 +0000
parents c49a9b272c44
children 2266e20ba821
files libmpdemux/tvi_dummy.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/tvi_dummy.c	Fri Dec 07 23:30:02 2001 +0000
+++ b/libmpdemux/tvi_dummy.c	Sat Dec 08 01:22:03 2001 +0000
@@ -35,6 +35,8 @@
 /* initialisation */
 static int init(priv_t *priv, tvi_param_t *params)
 {
+    priv->width = 320;
+    priv->height = 200;
     return(1);
 }
 
@@ -67,9 +69,15 @@
 	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:
 	    return(TVI_CONTROL_TRUE);