[vlc-commits] logger: use vlc_LogSet()

Rémi Denis-Courmont git at videolan.org
Mon Mar 18 22:15:26 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 18 22:20:29 2013 +0200| [9ee42fca3ad372f2877f87e78c1cfdbba3c5d757] | committer: Rémi Denis-Courmont

logger: use vlc_LogSet()

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

 modules/misc/logger.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/misc/logger.c b/modules/misc/logger.c
index d5c51a7..333d3b0 100644
--- a/modules/misc/logger.c
+++ b/modules/misc/logger.c
@@ -74,7 +74,6 @@
  *****************************************************************************/
 struct intf_sys_t
 {
-    msg_subscription_t sub;
     FILE *p_file;
     const char *footer;
 };
@@ -298,7 +297,7 @@ static int Open( vlc_object_t *p_this )
         fputs( header, p_sys->p_file );
     }
 
-    vlc_Subscribe( &p_sys->sub, cb, p_intf );
+    vlc_LogSet( p_intf->p_libvlc, cb, p_intf );
     return VLC_SUCCESS;
 }
 
@@ -311,7 +310,7 @@ static void Close( vlc_object_t *p_this )
     intf_sys_t *p_sys = p_intf->p_sys;
 
     /* Flush the queue and unsubscribe from the message queue */
-    vlc_Unsubscribe( &p_sys->sub );
+    vlc_LogSet( p_intf->p_libvlc, NULL, NULL );
 
     /* Close the log file */
 #ifdef HAVE_SYSLOG_H



More information about the vlc-commits mailing list