[vlc-devel] commit: Do not log through modules (they are not tied to any libvlc) ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Aug 30 13:39:38 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Aug 30 14:38:17 2008 +0300| [ca44ef6f6fe0af3878347243618b41b5d8b897e6] | committer: Rémi Denis-Courmont 

Do not log through modules (they are not tied to any libvlc)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ca44ef6f6fe0af3878347243618b41b5d8b897e6
---

 src/modules/entry.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/modules/entry.c b/src/modules/entry.c
index 88ddce3..eacf3ae 100644
--- a/src/modules/entry.c
+++ b/src/modules/entry.c
@@ -141,7 +141,7 @@ int vlc_module_set (module_t *module, int propid, ...)
             break;
 
         case VLC_MODULE_PROGRAM:
-            msg_Warn (module, "deprecated module property %d", propid);
+            fprintf (stderr, "deprecated module property %d", propid);
             break;
 
         case VLC_MODULE_CB_OPEN:
@@ -195,8 +195,8 @@ int vlc_module_set (module_t *module, int propid, ...)
         }
 
         default:
-            msg_Err (module, "unknown module property %d", propid);
-            msg_Err (module, "LibVLC might be too old to use this module.");
+            fprintf (stderr, "LibVLC: unknown module property %d", propid);
+            fprintf (stderr, "LibVLC: too old to use this module?");
             ret = VLC_EGENERIC;
             break;
     }




More information about the vlc-devel mailing list