diff libmpdemux/tvi_dummy.c @ 7319:20acd78d1239

fixed get_format/set_format
author alex
date Sun, 08 Sep 2002 16:05:59 +0000
parents 8cd761968f35
children 84012782d313
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);