[MPlayer-cvslog] r21444 - in trunk/Gui: cfg.c cfg.h interface.c mplayer/gtk/opts.c win32/interface.c
diego
subversion at mplayerhq.hu
Sat Dec 2 18:24:17 CET 2006
Author: diego
Date: Sat Dec 2 18:24:17 2006
New Revision: 21444
Modified:
trunk/Gui/cfg.c
trunk/Gui/cfg.h
trunk/Gui/interface.c
trunk/Gui/mplayer/gtk/opts.c
trunk/Gui/win32/interface.c
Log:
cosmetics: Rename functions and variable names from vop to vf.
Modified: trunk/Gui/cfg.c
==============================================================================
--- trunk/Gui/cfg.c (original)
+++ trunk/Gui/cfg.c Sat Dec 2 18:24:17 2006
@@ -22,9 +22,9 @@
int gtkEnableAudioEqualizer = 0;
-int gtkVopPP = 0;
+int gtkVfPP = 0;
#ifdef USE_LIBAVCODEC
- int gtkVopLAVC = 0;
+ int gtkVfLAVC = 0;
#endif
int gtkAONorm = 0;
@@ -102,10 +102,10 @@
{ "v_vfm",&video_fm_list,CONF_TYPE_STRING_LIST,0,0,0,NULL },
{ "a_afm",&audio_fm_list,CONF_TYPE_STRING_LIST,0,0,0,NULL },
- { "vf_pp",>kVopPP,CONF_TYPE_FLAG,0,0,1,NULL },
+ { "vf_pp",>kVfPP,CONF_TYPE_FLAG,0,0,1,NULL },
{ "vf_autoq",&auto_quality,CONF_TYPE_INT,CONF_RANGE,0,100,NULL },
#ifdef USE_LIBAVCODEC
- { "vf_lavc",>kVopLAVC,CONF_TYPE_FLAG,0,0,1,NULL },
+ { "vf_lavc",>kVfLAVC,CONF_TYPE_FLAG,0,0,1,NULL },
#endif
{ "ao_driver",&audio_driver_list,CONF_TYPE_STRING_LIST,0,0,0,NULL },
Modified: trunk/Gui/cfg.h
==============================================================================
--- trunk/Gui/cfg.h (original)
+++ trunk/Gui/cfg.h Sat Dec 2 18:24:17 2006
@@ -4,8 +4,8 @@
extern int gtkEnableAudioEqualizer;
-extern int gtkVopPP;
-extern int gtkVopLAVC;
+extern int gtkVfPP;
+extern int gtkVfLAVC;
extern int gtkAONorm;
extern int gtkAOFakeSurround;
Modified: trunk/Gui/interface.c
==============================================================================
--- trunk/Gui/interface.c (original)
+++ trunk/Gui/interface.c Sat Dec 2 18:24:17 2006
@@ -514,7 +514,7 @@
}
-static void add_vop( char * str )
+static void add_vf( char * str )
{
mp_msg( MSGT_GPLAYER,MSGL_STATUS,MSGTR_AddingVideoFilter,str );
if ( vo_plugin_args )
@@ -526,7 +526,7 @@
} else { vo_plugin_args=malloc( 2 * sizeof( m_obj_settings_t ) ); vo_plugin_args[0].name=strdup( str );vo_plugin_args[0].attribs = NULL; vo_plugin_args[1].name=NULL; }
}
-static void remove_vop( char * str )
+static void remove_vf( char * str )
{
int n = 0;
@@ -724,7 +724,7 @@
#ifdef HAVE_DXR3
if ( video_driver_list && !gstrcmp( video_driver_list[0],"dxr3" ) && guiIntfStruct.FileFormat != DEMUXER_TYPE_MPEG_PS
#ifdef USE_LIBAVCODEC
- && !gtkVopLAVC
+ && !gtkVfLAVC
#endif
)
{
@@ -812,21 +812,21 @@
#ifdef HAVE_DXR3
#ifdef USE_LIBAVCODEC
- remove_vop( "lavc" );
+ remove_vf( "lavc" );
#endif
if ( video_driver_list && !gstrcmp( video_driver_list[0],"dxr3" ) )
{
if ( ( guiIntfStruct.StreamType != STREAMTYPE_DVD)&&( guiIntfStruct.StreamType != STREAMTYPE_VCD ) )
{
#ifdef USE_LIBAVCODEC
- if ( gtkVopLAVC ) add_vop( "lavc" );
+ if ( gtkVfLAVC ) add_vf( "lavc" );
#endif
}
}
#endif
// ---
- if ( gtkVopPP ) add_vop( "pp" );
- else remove_vop( "pp" );
+ if ( gtkVfPP ) add_vf( "pp" );
+ else remove_vf( "pp" );
// --- audio opts
// if ( ao_plugin_cfg.plugin_list ) { free( ao_plugin_cfg.plugin_list ); ao_plugin_cfg.plugin_list=NULL; }
Modified: trunk/Gui/mplayer/gtk/opts.c
==============================================================================
--- trunk/Gui/mplayer/gtk/opts.c (original)
+++ trunk/Gui/mplayer/gtk/opts.c Sat Dec 2 18:24:17 2006
@@ -366,7 +366,7 @@
}
// --- 6. page
- gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBPostprocess ),gtkVopPP );
+ gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBPostprocess ),gtkVfPP );
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBLoadFullscreen ),gtkLoadFullscreen );
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBSaveWinPos ),gui_save_pos );
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBShowVideoWindow ),gtkShowVideoWindow );
@@ -595,7 +595,7 @@
}
// --- 6. page
- gtkVopPP=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBPostprocess ) );
+ gtkVfPP=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBPostprocess ) );
gtkLoadFullscreen=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBLoadFullscreen ) );
gui_save_pos=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBSaveWinPos ) );
gtkShowVideoWindow=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBShowVideoWindow ) );
@@ -1704,7 +1704,7 @@
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( RBVNone ),TRUE );
#ifdef USE_LIBAVCODEC
- if ( gtkVopLAVC ) gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( RBVLavc ),TRUE );
+ if ( gtkVfLAVC ) gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( RBVLavc ),TRUE );
#endif
gtk_widget_show( DXR3Config );
@@ -1726,7 +1726,7 @@
case 0: // Ok
gfree( (void **)>kDXR3Device ); gtkDXR3Device=strdup( gtk_entry_get_text( GTK_ENTRY( CEDXR3Device ) ) );
#ifdef USE_LIBAVCODEC
- gtkVopLAVC=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( RBVLavc ) );
+ gtkVfLAVC=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( RBVLavc ) );
#endif
case 1: // Cancel
HideDXR3Config();
Modified: trunk/Gui/win32/interface.c
==============================================================================
--- trunk/Gui/win32/interface.c (original)
+++ trunk/Gui/win32/interface.c Sat Dec 2 18:24:17 2006
@@ -480,7 +480,7 @@
cfg_write();
}
-static void add_vop(char * str)
+static void add_vf(char * str)
{
mp_msg(MSGT_GPLAYER, MSGL_STATUS, MSGTR_AddingVideoFilter, str);
if (vo_plugin_args)
@@ -509,7 +509,7 @@
}
}
-static void remove_vop(char * str)
+static void remove_vf(char * str)
{
int n = 0;
if (!vo_plugin_args ) return;
More information about the MPlayer-cvslog
mailing list