changeset 7319:20acd78d1239

fixed get_format/set_format
author alex
date Sun, 08 Sep 2002 16:05:59 +0000
parents 85897ab199a4
children 1c6c94f693ed
files libmpdemux/tvi_dummy.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/tvi_dummy.c	Sun Sep 08 16:04:21 2002 +0000
+++ b/libmpdemux/tvi_dummy.c	Sun Sep 08 16:05:59 2002 +0000
@@ -58,11 +58,13 @@
 	case TVI_CONTROL_IS_VIDEO:
 	    return(TVI_CONTROL_TRUE);
 	case TVI_CONTROL_VID_GET_FORMAT:
-	    (int)*(void **)arg = IMGFMT_YV12;
+//	    (int)*(void **)arg = IMGFMT_YV12;
+	    *(int *)arg = IMGFMT_YV12;
 	    return(TVI_CONTROL_TRUE);
 	case TVI_CONTROL_VID_SET_FORMAT:
 	{
-	    int req_fmt = (int)*(void **)arg;
+//	    int req_fmt = (int)*(void **)arg;
+	    int req_fmt = *(int *)arg;
 	    if (req_fmt != IMGFMT_YV12)
 		return(TVI_CONTROL_FALSE);
 	    return(TVI_CONTROL_TRUE);