diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-08 01:22:03 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-08 01:22:03 +0000 |
commit | 6c53dbdd85014b290473c839985b44c008117e2d (patch) | |
tree | 262517cb20d82984106adadd9e7d17078f33bf98 /libmpdemux | |
parent | ca2919f67190705589ce10e061705004b35ea5ed (diff) |
default size 320x200
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3376 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/tvi_dummy.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libmpdemux/tvi_dummy.c b/libmpdemux/tvi_dummy.c index 765c8fcc7b..6470bcaff4 100644 --- a/libmpdemux/tvi_dummy.c +++ b/libmpdemux/tvi_dummy.c @@ -35,6 +35,8 @@ tvi_handle_t *tvi_init_dummy(char *device) /* initialisation */ static int init(priv_t *priv, tvi_param_t *params) { + priv->width = 320; + priv->height = 200; return(1); } @@ -67,9 +69,15 @@ static int control(priv_t *priv, int cmd, void *arg) 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); |