[MPlayer-cvslog] CVS: main/libaf af_format.c,1.24,1.25

Reimar Döffinger CVS syncmail at mplayerhq.hu
Thu Feb 17 16:35:46 CET 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libaf
In directory mail:/var2/tmp/cvs-serv29772/libaf

Modified Files:
	af_format.c 
Log Message:
confusing mixture of typecasts and casted variable, removed typecasts


Index: af_format.c
===================================================================
RCS file: /cvsroot/mplayer/main/libaf/af_format.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- af_format.c	8 Jan 2005 21:34:06 -0000	1.24
+++ af_format.c	17 Feb 2005 15:35:44 -0000	1.25
@@ -287,25 +287,25 @@
     af_data_t *data = arg;
     
     // Make sure this filter isn't redundant 
-    if(af->data->format == ((af_data_t*)arg)->format && 
-       af->data->bps == ((af_data_t*)arg)->bps)
+    if(af->data->format == data->format && 
+       af->data->bps == data->bps)
       return AF_DETACH;
 
     // Check for errors in configuraton
-    if((AF_OK != check_bps(((af_data_t*)arg)->bps)) ||
-       (AF_OK != check_format(((af_data_t*)arg)->format)) ||
+    if((AF_OK != check_bps(data->bps)) ||
+       (AF_OK != check_format(data->format)) ||
        (AF_OK != check_bps(af->data->bps)) ||
        (AF_OK != check_format(af->data->format)))
       return AF_ERROR;
 
     af_msg(AF_MSG_VERBOSE,"[format] Changing sample format from %s to %s\n",
-	   af_fmt2str(((af_data_t*)arg)->format,buf1,256),
+	   af_fmt2str(data->format,buf1,256),
 	   af_fmt2str(af->data->format,buf2,256));
 
-    af->data->rate = ((af_data_t*)arg)->rate;
-    af->data->nch  = ((af_data_t*)arg)->nch;
+    af->data->rate = data->rate;
+    af->data->nch  = data->nch;
     af->mul.n      = af->data->bps;
-    af->mul.d      = ((af_data_t*)arg)->bps;
+    af->mul.d      = data->bps;
     af_frac_cancel(&af->mul);
     
     af->play = play; // set default
@@ -321,7 +321,7 @@
 	(af->data->format == AF_FORMAT_S16_NE))
     {
 	af_msg(AF_MSG_VERBOSE,"[format] Accelerated %s to %s conversion\n",
-	   af_fmt2str(((af_data_t*)arg)->format,buf1,256),
+	   af_fmt2str(data->format,buf1,256),
 	   af_fmt2str(af->data->format,buf2,256));
 	af->play = play_float_s16;
     }
@@ -329,7 +329,7 @@
 	(af->data->format == AF_FORMAT_FLOAT_NE))
     {
 	af_msg(AF_MSG_VERBOSE,"[format] Accelerated %s to %s conversion\n",
-	   af_fmt2str(((af_data_t*)arg)->format,buf1,256),
+	   af_fmt2str(data->format,buf1,256),
 	   af_fmt2str(af->data->format,buf2,256));
 	af->play = play_s16_float;
     }




More information about the MPlayer-cvslog mailing list