comparison mplayer.c @ 20251:2971196cd8c6

Disable loading of file-specific configuration file from the same directory as the played file. Add a command-line switch to enable it. Patch by reimar, manpage patch by me
author rtogni
date Sun, 15 Oct 2006 21:27:15 +0000
parents dc4afdf288fb
children ff8124582923
comparison
equal deleted inserted replaced
20250:7cfd3a04d537 20251:2971196cd8c6
411 short user_muted = 0; ///< Stores whether user wanted muted mode. 411 short user_muted = 0; ///< Stores whether user wanted muted mode.
412 short edl_muted = 0; ///< Stores whether EDL is currently in muted mode. 412 short edl_muted = 0; ///< Stores whether EDL is currently in muted mode.
413 short edl_decision = 0; ///< 1 when an EDL operation has been made. 413 short edl_decision = 0; ///< 1 when an EDL operation has been made.
414 FILE* edl_fd = NULL; ///< fd to write to when in -edlout mode. 414 FILE* edl_fd = NULL; ///< fd to write to when in -edlout mode.
415 float begin_skip = MP_NOPTS_VALUE; ///< start time of the current skip while on edlout mode 415 float begin_skip = MP_NOPTS_VALUE; ///< start time of the current skip while on edlout mode
416 int use_filedir_conf;
416 417
417 static unsigned int inited_flags=0; 418 static unsigned int inited_flags=0;
418 #define INITED_VO 1 419 #define INITED_VO 1
419 #define INITED_AO 2 420 #define INITED_AO 2
420 #define INITED_GUI 4 421 #define INITED_GUI 4
852 struct stat st; 853 struct stat st;
853 char *name; 854 char *name;
854 855
855 sprintf (cfg, "%s.conf", file); 856 sprintf (cfg, "%s.conf", file);
856 857
857 if (!stat (cfg, &st)) 858 if (use_filedir_conf && !stat (cfg, &st))
858 { 859 {
859 mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_LoadingConfig, cfg); 860 mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_LoadingConfig, cfg);
860 m_config_parse_config_file (conf, cfg); 861 m_config_parse_config_file (conf, cfg);
861 return; 862 return;
862 } 863 }