Mercurial > mplayer.hg
comparison libmpdemux/tvi_dummy.c @ 2815:c9b4ab4321c2
fix
author | alex |
---|---|
date | Sun, 11 Nov 2001 02:20:57 +0000 |
parents | 09d5c9834580 |
children | 596a6ba3520f |
comparison
equal
deleted
inserted
replaced
2814:37fc45a05082 | 2815:c9b4ab4321c2 |
---|---|
53 case TVI_CONTROL_IS_VIDEO: | 53 case TVI_CONTROL_IS_VIDEO: |
54 return(TVI_CONTROL_TRUE); | 54 return(TVI_CONTROL_TRUE); |
55 case TVI_CONTROL_VID_GET_FORMAT: | 55 case TVI_CONTROL_VID_GET_FORMAT: |
56 (int)*(void **)arg = IMGFMT_YV12; | 56 (int)*(void **)arg = IMGFMT_YV12; |
57 return(TVI_CONTROL_TRUE); | 57 return(TVI_CONTROL_TRUE); |
58 case TVI_CONTROL_VID_SET_FORMAT: | |
59 { | |
60 int req_fmt = (int)*(void **)arg; | |
61 if (req_fmt != IMGFMT_YV12) | |
62 return(TVI_CONTROL_FALSE); | |
63 return(TVI_CONTROL_TRUE); | |
64 } | |
58 case TVI_CONTROL_VID_SET_WIDTH: | 65 case TVI_CONTROL_VID_SET_WIDTH: |
59 priv->width = (int)*(void **)arg; | 66 priv->width = (int)*(void **)arg; |
60 return(TVI_CONTROL_TRUE); | 67 return(TVI_CONTROL_TRUE); |
61 case TVI_CONTROL_VID_SET_HEIGHT: | 68 case TVI_CONTROL_VID_SET_HEIGHT: |
62 priv->height = (int)*(void **)arg; | 69 priv->height = (int)*(void **)arg; |