changeset 30612:ed1000201cd0

Remove pointless '#if 1' preprocessor directives.
author diego
date Fri, 19 Feb 2010 10:22:29 +0000
parents 8e3c8ca13b4c
children e04602bd557a
files gui/cfg.c libao2/ao_dsound.c libvo/mga_common.c libvo/vo_dxr3.c libvo/vo_xvmc.c loader/win32.c stream/stream_dvdnav.c vidix/pm3_regs.h
diffstat 8 files changed, 1 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/gui/cfg.c	Fri Feb 19 10:18:55 2010 +0000
+++ b/gui/cfg.c	Fri Feb 19 10:22:29 2010 +0000
@@ -205,7 +205,6 @@
  { "equ_channel_5",&gtkEquChannel5,CONF_TYPE_STRING,0,0,0,NULL },
  { "equ_channel_6",&gtkEquChannel6,CONF_TYPE_STRING,0,0,0,NULL },
 
-#if 1
 #define audio_equ_row( i,j ) { "equ_band_"#i#j,&gtkEquChannels[i][j],CONF_TYPE_FLOAT,CONF_RANGE,-15.0,15.0,NULL },
    audio_equ_row( 0,0 ) audio_equ_row( 0,1 ) audio_equ_row( 0,2 ) audio_equ_row( 0,3 ) audio_equ_row( 0,4 ) audio_equ_row( 0,5 ) audio_equ_row( 0,6 ) audio_equ_row( 0,7 ) audio_equ_row( 0,8 ) audio_equ_row( 0,9 )
    audio_equ_row( 1,0 ) audio_equ_row( 1,1 ) audio_equ_row( 1,2 ) audio_equ_row( 1,3 ) audio_equ_row( 1,4 ) audio_equ_row( 1,5 ) audio_equ_row( 1,6 ) audio_equ_row( 1,7 ) audio_equ_row( 1,8 ) audio_equ_row( 1,9 )
@@ -214,7 +213,6 @@
    audio_equ_row( 4,0 ) audio_equ_row( 4,1 ) audio_equ_row( 4,2 ) audio_equ_row( 4,3 ) audio_equ_row( 4,4 ) audio_equ_row( 4,5 ) audio_equ_row( 4,6 ) audio_equ_row( 4,7 ) audio_equ_row( 4,8 ) audio_equ_row( 4,9 )
    audio_equ_row( 5,0 ) audio_equ_row( 5,1 ) audio_equ_row( 5,2 ) audio_equ_row( 5,3 ) audio_equ_row( 5,4 ) audio_equ_row( 5,5 ) audio_equ_row( 5,6 ) audio_equ_row( 5,7 ) audio_equ_row( 5,8 ) audio_equ_row( 5,9 )
 #undef audio_equ_row
-#endif
 
  { NULL, NULL, 0, 0, 0, 0, NULL }
 };
--- a/libao2/ao_dsound.c	Fri Feb 19 10:18:55 2010 +0000
+++ b/libao2/ao_dsound.c	Fri Feb 19 10:22:29 2010 +0000
@@ -55,7 +55,6 @@
 /**
 \todo use the definitions from the win32 api headers when they define these
 */
-#if 1
 #define WAVE_FORMAT_IEEE_FLOAT 0x0003
 #define WAVE_FORMAT_DOLBY_AC3_SPDIF 0x0092
 #define WAVE_FORMAT_EXTENSIBLE 0xFFFE
@@ -103,8 +102,6 @@
 } WAVEFORMATEXTENSIBLE, *PWAVEFORMATEXTENSIBLE;
 #endif
 
-#endif
-
 static const int channel_mask[] = {
   SPEAKER_FRONT_LEFT   | SPEAKER_FRONT_RIGHT  | SPEAKER_LOW_FREQUENCY,
   SPEAKER_FRONT_LEFT   | SPEAKER_FRONT_RIGHT  | SPEAKER_BACK_LEFT    | SPEAKER_BACK_RIGHT,
--- a/libvo/mga_common.c	Fri Feb 19 10:18:55 2010 +0000
+++ b/libvo/mga_common.c	Fri Feb 19 10:22:29 2010 +0000
@@ -142,11 +142,9 @@
 
 //    printf("-- flip to %d --\n",mga_next_frame);
 
-#if 1
 	ioctl(f,MGA_VID_FSEL,&mga_next_frame);
 	mga_next_frame=(mga_next_frame+1)%mga_vid_config.num_frames;
 	vid_data=frames[mga_next_frame];
-#endif
 
 }
 
--- a/libvo/vo_dxr3.c	Fri Feb 19 10:18:55 2010 +0000
+++ b/libvo/vo_dxr3.c	Fri Feb 19 10:22:29 2010 +0000
@@ -630,9 +630,7 @@
 		 */
 /*		Subpics are not stable yet =(
 		expect lockups if you enable */
-#if 1
 		write(fd_spu, spued->data, spued->count);
-#endif
 	}
 	disposd++;
 #endif
--- a/libvo/vo_xvmc.c	Fri Feb 19 10:18:55 2010 +0000
+++ b/libvo/vo_xvmc.c	Fri Feb 19 10:22:29 2010 +0000
@@ -1110,7 +1110,6 @@
                             rndr->flags,
                             rndr->filled_mv_blocks_num,rndr->start_mv_blocks_num,
                             &mv_blocks,&data_blocks);
-#if 1
     if(rez != Success)
     {
     int i;
@@ -1136,7 +1135,6 @@
                     testblock->PMV[0][0][0],testblock->PMV[0][0][1]);
         }
     }
-#endif
     assert(rez==Success);
     mp_msg(MSGT_VO,MSGL_DBG4,"vo_xvmc: flush surface\n");
     rez = XvMCFlushSurface(mDisplay, rndr->p_surface);
--- a/loader/win32.c	Fri Feb 19 10:18:55 2010 +0000
+++ b/loader/win32.c	Fri Feb 19 10:22:29 2010 +0000
@@ -4131,11 +4131,9 @@
     va_list args;
     int r = 0;
     dbgprintf("fprintf(%p, %s, ...)\n", stream, format);
-#if 1
     va_start(args, format);
     r = vfprintf((FILE*) stream, format, args);
     va_end(args);
-#endif
     return r;
 }
 
@@ -4424,7 +4422,6 @@
 	 : "d"(jmpbuf) // input
 	 : "eax"
 	);
-#if 1
     __asm__ volatile
 	(
 	 "mov %%fs:0, %%eax	\n\t" // unsure
@@ -4437,7 +4434,6 @@
 	 :
 	 : "eax"
 	);
-#endif
 
 	return 0;
 }
@@ -4494,7 +4490,6 @@
 	return;
     }
 
-#if 1
     f = fopen( "/proc/meminfo", "r" );
     if (f)
     {
@@ -4542,7 +4537,6 @@
                                       / (TotalPhysical / 100);
         }
     } else
-#endif
     {
 	/* FIXME: should do something for other systems */
 	lpmem->dwMemoryLoad    = 0;
--- a/stream/stream_dvdnav.c	Fri Feb 19 10:18:55 2010 +0000
+++ b/stream/stream_dvdnav.c	Fri Feb 19 10:22:29 2010 +0000
@@ -132,12 +132,10 @@
   dvdnav_set_readahead_flag(priv->dvdnav, 0);
   if(dvdnav_set_PGC_positioning_flag(priv->dvdnav, 1) != DVDNAV_STATUS_OK)
     mp_msg(MSGT_OPEN,MSGL_ERR,"stream_dvdnav, failed to set PGC positioning\n");
-#if 1
   /* report the title?! */
   if (dvdnav_get_title_string(priv->dvdnav,&title_str)==DVDNAV_STATUS_OK) {
     mp_msg(MSGT_IDENTIFY, MSGL_INFO,"Title: '%s'\n",title_str);
   }
-#endif
 
   //dvdnav_event_clear(priv);
 
--- a/vidix/pm3_regs.h	Fri Feb 19 10:18:55 2010 +0000
+++ b/vidix/pm3_regs.h	Fri Feb 19 10:22:29 2010 +0000
@@ -1051,8 +1051,6 @@
 	#define PM3FillRectanglePosition_XOffset(x)            ((x)&0xffff)
 	#define PM3FillRectanglePosition_YOffset(y)            (((y)&0xffff)<<16)
 
-#if 1
-
 /**********************************************
 *  GLINT Permedia3 Macros                     *
 ***********************************************/
@@ -1109,5 +1107,5 @@
     RAMDAC_SET_INDEX(index);					\
     temp = READ_REG(PM3RD_IndexedData);			\
 }
-#endif
+
 #endif /* MPLAYER_PM3_REGS_H */