Mercurial > mplayer.hg
changeset 2815:c9b4ab4321c2
fix
author | alex |
---|---|
date | Sun, 11 Nov 2001 02:20:57 +0000 |
parents | 37fc45a05082 |
children | 190e713d8e07 |
files | libmpdemux/tvi_dummy.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/tvi_dummy.c Sun Nov 11 02:20:39 2001 +0000 +++ b/libmpdemux/tvi_dummy.c Sun Nov 11 02:20:57 2001 +0000 @@ -55,6 +55,13 @@ case TVI_CONTROL_VID_GET_FORMAT: (int)*(void **)arg = IMGFMT_YV12; return(TVI_CONTROL_TRUE); + case TVI_CONTROL_VID_SET_FORMAT: + { + int req_fmt = (int)*(void **)arg; + if (req_fmt != IMGFMT_YV12) + return(TVI_CONTROL_FALSE); + return(TVI_CONTROL_TRUE); + } case TVI_CONTROL_VID_SET_WIDTH: priv->width = (int)*(void **)arg; return(TVI_CONTROL_TRUE);