[MPlayer-cvslog] r33932 - in trunk: codec-cfg.c input/input.c

diego subversion at mplayerhq.hu
Wed Jul 27 15:40:16 CEST 2011


Author: diego
Date: Wed Jul 27 15:40:16 2011
New Revision: 33932

Log:
Clarify console output when reading optional configuration files.

Modified:
   trunk/codec-cfg.c
   trunk/input/input.c

Modified: trunk/codec-cfg.c
==============================================================================
--- trunk/codec-cfg.c	Wed Jul 27 15:40:13 2011	(r33931)
+++ trunk/codec-cfg.c	Wed Jul 27 15:40:16 2011	(r33932)
@@ -555,10 +555,10 @@ int parse_codec_cfg(const char *cfgfile)
 #endif
     }
 
-    mp_msg(MSGT_CODECCFG, MSGL_V, "Reading %s: ", cfgfile);
+    mp_msg(MSGT_CODECCFG, MSGL_V, "Reading optional codecs config file %s: ", cfgfile);
 
     if ((fp = fopen(cfgfile, "r")) == NULL) {
-        mp_msg(MSGT_CODECCFG, MSGL_V, "Can't open '%s': %s\n", cfgfile, strerror(errno));
+        mp_msg(MSGT_CODECCFG, MSGL_V, "%s\n", strerror(errno));
         return 0;
     }
 

Modified: trunk/input/input.c
==============================================================================
--- trunk/input/input.c	Wed Jul 27 15:40:13 2011	(r33931)
+++ trunk/input/input.c	Wed Jul 27 15:40:16 2011	(r33932)
@@ -1581,7 +1581,8 @@ mp_input_parse_config(char *file) {
   fd = open(file,O_RDONLY);
 
   if(fd < 0) {
-    mp_msg(MSGT_INPUT,MSGL_V,"Can't open input config file %s: %s\n",file,strerror(errno));
+    mp_msg(MSGT_INPUT, MSGL_V, "Reading optional input config file %s: %s\n",
+           file, strerror(errno));
     return 0;
   }
 


More information about the MPlayer-cvslog mailing list