diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-08-03 15:21:40 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-08-03 15:21:40 +0000 |
commit | 02135001b44afc5446228228055c9ce7f29df5be (patch) | |
tree | 9a4243fe1da1f111cafab0a39c1b25720afab34b /gui/mplayer | |
parent | 52d358e3dcd4bc813441f6e23d8d9d212a18d7dd (diff) |
Change a bunch of video/audio-output-specific preprocessor directives from
a HAVE_ prefix to a CONFIG_ prefix.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27402 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'gui/mplayer')
-rw-r--r-- | gui/mplayer/gtk/menu.c | 6 | ||||
-rw-r--r-- | gui/mplayer/gtk/opts.c | 22 | ||||
-rw-r--r-- | gui/mplayer/gui_common.c | 4 | ||||
-rw-r--r-- | gui/mplayer/mw.c | 4 | ||||
-rw-r--r-- | gui/mplayer/play.c | 6 |
5 files changed, 21 insertions, 21 deletions
diff --git a/gui/mplayer/gtk/menu.c b/gui/mplayer/gtk/menu.c index d54d4fe1e3..beac3325c1 100644 --- a/gui/mplayer/gtk/menu.c +++ b/gui/mplayer/gtk/menu.c @@ -72,7 +72,7 @@ #include "../pixmaps/tonguebla.xpm" #include "../pixmaps/empty1px.xpm" #endif -#ifdef HAVE_VCD +#ifdef CONFIG_VCD #include "../pixmaps/vcd.xpm" #include "../pixmaps/playvcd.xpm" #endif @@ -421,7 +421,7 @@ GtkWidget * create_PopUpMenu( void ) AddSeparator( Menu ); SubMenu=AddSubMenu( window1, (const char*)open_xpm, Menu,MSGTR_MENU_Open ); AddMenuItem( window1, (const char*)file2_xpm, SubMenu,MSGTR_MENU_PlayFile" ", evLoadPlay ); -#ifdef HAVE_VCD +#ifdef CONFIG_VCD AddMenuItem( window1, (const char*)playvcd_xpm, SubMenu,MSGTR_MENU_PlayVCD, evPlayVCD ); #endif #ifdef CONFIG_DVDREAD @@ -446,7 +446,7 @@ GtkWidget * create_PopUpMenu( void ) // AddMenuItem( SubMenu,MSGTR_MENU_NormalSize" ", evNormalSize ); // AddMenuItem( SubMenu,MSGTR_MENU_DoubleSize, evDoubleSize ); // AddMenuItem( SubMenu,MSGTR_MENU_FullScreen, evFullScreen ); -#ifdef HAVE_VCD +#ifdef CONFIG_VCD VCDSubMenu=AddSubMenu( window1, (const char*)vcd_xpm, Menu,MSGTR_MENU_VCD ); AddMenuItem( window1, (const char*)playvcd_xpm, VCDSubMenu,MSGTR_MENU_PlayDisc,evPlayVCD ); AddSeparator( VCDSubMenu ); diff --git a/gui/mplayer/gtk/opts.c b/gui/mplayer/gtk/opts.c index 281f49de71..027f931238 100644 --- a/gui/mplayer/gtk/opts.c +++ b/gui/mplayer/gtk/opts.c @@ -178,7 +178,7 @@ static char * ao_driver[3]; static char * vo_driver[3]; static int old_video_driver = 0; -#ifdef HAVE_DXR3 +#ifdef CONFIG_DXR3 void ShowDXR3Config( void ); void HideDXR3Config( void ); #endif @@ -271,7 +271,7 @@ void ShowPreferences( void ) gtk_clist_select_row( GTK_CLIST( CLVDrivers ),old_video_driver,0 ); gtk_clist_get_text( GTK_CLIST( CLVDrivers ),old_video_driver,0,(char **)&vo_driver ); gtk_widget_set_sensitive( VConfig,FALSE ); -#ifdef HAVE_DXR3 +#ifdef CONFIG_DXR3 if ( !gstrcmp( vo_driver[0],"dxr3" ) ) gtk_widget_set_sensitive( VConfig,TRUE ); #endif } @@ -487,7 +487,7 @@ void HidePreferences( void ) gtk_widget_destroy( Preferences ); Preferences=NULL; HideAudioConfig(); -#ifdef HAVE_DXR3 +#ifdef CONFIG_DXR3 HideDXR3Config(); #endif } @@ -649,7 +649,7 @@ void prButton( GtkButton * button,gpointer user_data ) case bVconfig: if ( !vo_driver[0] ) break; gtk_widget_set_sensitive( VConfig,FALSE ); -#ifdef HAVE_DXR3 +#ifdef CONFIG_DXR3 if ( !gstrcmp( vo_driver[0],"dxr3" ) ) { ShowDXR3Config(); gtk_widget_set_sensitive( VConfig,TRUE ); } #endif break; @@ -790,7 +790,7 @@ static void prCListRow( GtkCList * clist,gint row,gint column,GdkEvent * event,g case 1: // video driver gtk_clist_get_text( GTK_CLIST( CLVDrivers ),row,0,(char **)&vo_driver ); gtk_widget_set_sensitive( VConfig,FALSE ); -#ifdef HAVE_DXR3 +#ifdef CONFIG_DXR3 if ( !gstrcmp( vo_driver[0],"dxr3" ) ) gtk_widget_set_sensitive( VConfig,TRUE ); #endif break; @@ -1388,7 +1388,7 @@ GList *appendOSSDevices(GList *l) { l = g_list_append(l, (gpointer)"/dev/dsp2"); l = g_list_append(l, (gpointer)"/dev/dsp3"); } -#ifdef HAVE_DXR3 +#ifdef CONFIG_DXR3 l = g_list_append(l, (gpointer)"/dev/em8300_ma"); l = g_list_append(l, (gpointer)"/dev/em8300_ma-0"); l = g_list_append(l, (gpointer)"/dev/em8300_ma-1"); @@ -1450,7 +1450,7 @@ GList *appendALSAMixerChannels(GList *l) { } #endif -#ifdef HAVE_SDL +#ifdef CONFIG_SDL GList *appendSDLDevices(GList *l) { l = g_list_append(l, (gpointer)"alsa"); l = g_list_append(l, (gpointer)"arts"); @@ -1517,7 +1517,7 @@ void ShowAudioConfig() { setGtkEntryText(CEAudioMixerChannel, gtkAOALSAMixerChannel); } #endif -#ifdef HAVE_SDL +#ifdef CONFIG_SDL if (strncmp(ao_driver[0], "sdl", 3) == 0) { setGtkEntryText(CEAudioDevice, gtkAOSDLDriver); } @@ -1562,7 +1562,7 @@ static void audioButton(GtkButton *button, gpointer user_data) { gtkAOALSAMixerChannel = gstrdup(getGtkEntryText(CEAudioMixerChannel)); } #endif -#ifdef HAVE_SDL +#ifdef CONFIG_SDL if (strncmp(ao_driver[0], "sdl", 3) == 0) { gfree(>kAOSDLDriver); gtkAOSDLDriver = gstrdup(getGtkEntryText(CEAudioDevice)); @@ -1620,7 +1620,7 @@ GtkWidget *create_AudioConfig() { if (strncmp(ao_driver[0], "alsa", 4) == 0) items = appendALSADevices(items); #endif -#ifdef HAVE_SDL +#ifdef CONFIG_SDL if (strncmp(ao_driver[0], "sdl", 3) == 0) items = appendSDLDevices(items); #endif @@ -1700,7 +1700,7 @@ GtkWidget *create_AudioConfig() { return AudioConfig; } -#ifdef HAVE_DXR3 +#ifdef CONFIG_DXR3 // --- dxr3 config box static GtkWidget * DXR3Config; diff --git a/gui/mplayer/gui_common.c b/gui/mplayer/gui_common.c index b422fc4a0b..957e85d3b1 100644 --- a/gui/mplayer/gui_common.c +++ b/gui/mplayer/gui_common.c @@ -77,7 +77,7 @@ static inline void TranslateFilename( int c,char * tmp,size_t tmplen ) else av_strlcat( tmp,MSGTR_NoChapter,tmplen ); break; #endif -#ifdef HAVE_VCD +#ifdef CONFIG_VCD case STREAMTYPE_VCD: snprintf( tmp,tmplen,MSGTR_VCDTrack,guiIntfStruct.Track ); break; @@ -174,7 +174,7 @@ calclengthmmmmss: switch ( guiIntfStruct.StreamType ) { case STREAMTYPE_FILE: av_strlcat( trbuf,"f",sizeof( trbuf ) ); break; -#ifdef HAVE_VCD +#ifdef CONFIG_VCD case STREAMTYPE_VCD: av_strlcat( trbuf,"v",sizeof( trbuf ) ); break; #endif case STREAMTYPE_STREAM: av_strlcat( trbuf,"u",sizeof( trbuf ) ); break; diff --git a/gui/mplayer/mw.c b/gui/mplayer/mw.c index d6d269eb52..6f8866c640 100644 --- a/gui/mplayer/mw.c +++ b/gui/mplayer/mw.c @@ -128,7 +128,7 @@ void mplEventHandling( int msg,float param ) mp_property_do("sub",M_PROPERTY_SET,&iparam,guiIntfStruct.mpcontext); break; -#ifdef HAVE_VCD +#ifdef CONFIG_VCD case evSetVCDTrack: guiIntfStruct.Track=iparam; case evPlayVCD: @@ -165,7 +165,7 @@ play: case STREAMTYPE_FILE: gtkSet( gtkClearStruct,0,(void *)(guiALL - guiFilenames) ); break; -#ifdef HAVE_VCD +#ifdef CONFIG_VCD case STREAMTYPE_VCD: gtkSet( gtkClearStruct,0,(void *)(guiALL - guiVCD - guiFilenames) ); if ( !cdrom_device ) cdrom_device=gstrdup( DEFAULT_CDROM_DEVICE ); diff --git a/gui/mplayer/play.c b/gui/mplayer/play.c index a06370c2b8..63b639d5d1 100644 --- a/gui/mplayer/play.c +++ b/gui/mplayer/play.c @@ -296,7 +296,7 @@ void mplCurr( void ) case STREAMTYPE_DVD: break; #endif -#ifdef HAVE_VCD +#ifdef CONFIG_VCD case STREAMTYPE_VCD: break; #endif @@ -332,7 +332,7 @@ void mplPrev( void ) guiIntfStruct.Track=guiIntfStruct.DVD.current_title; break; #endif -#ifdef HAVE_VCD +#ifdef CONFIG_VCD case STREAMTYPE_VCD: if ( --guiIntfStruct.Track == 0 ) { guiIntfStruct.Track=1; stop=1; } break; @@ -368,7 +368,7 @@ void mplNext( void ) guiIntfStruct.Track=guiIntfStruct.DVD.current_title; break; #endif -#ifdef HAVE_VCD +#ifdef CONFIG_VCD case STREAMTYPE_VCD: if ( ++guiIntfStruct.Track > guiIntfStruct.VCDTracks ) { guiIntfStruct.Track=guiIntfStruct.VCDTracks; stop=1; } break; |