[vlc-devel] commit: Use the verbose variable, over the private i_verbose member ( Rafaël Carré )

git version control git at videolan.org
Mon May 5 09:51:21 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon May  5 09:51:07 2008 +0200| [e41147c8740c66f2787012d819ffa19a917fc929]

Use the verbose variable, over the private i_verbose member

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

 modules/demux/live555.cpp |    2 +-
 modules/misc/logger.c     |    7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index 1e985f4..5c6f42e 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -506,7 +506,7 @@ createnew:
         i_http_port = var_CreateGetInteger( p_demux, "rtsp-http-port" );
 
     if( ( p_sys->rtsp = RTSPClient::createNew( *p_sys->env,
-          p_demux->p_libvlc->i_verbose > 1,
+          var_CreateGetInteger( p_demux, "verbose" ) > 1,
           "VLC media player", i_http_port ) ) == NULL )
     {
         msg_Err( p_demux, "RTSPClient::createNew failed (%s)",
diff --git a/modules/misc/logger.c b/modules/misc/logger.c
index b2d73a1..e4554d9 100644
--- a/modules/misc/logger.c
+++ b/modules/misc/logger.c
@@ -305,7 +305,8 @@ static void Close( vlc_object_t *p_this )
 
     /* Flush the queue and unsubscribe from the message queue */
     FlushQueue( p_intf->p_sys->p_sub, p_intf->p_sys->p_file,
-                p_intf->p_sys->i_mode, p_intf->p_libvlc->i_verbose );
+                p_intf->p_sys->i_mode,
+                var_CreateGetInteger( p_intf, "verbose" ) );
     msg_Unsubscribe( p_intf, p_intf->p_sys->p_sub );
 
     switch( p_intf->p_sys->i_mode )
@@ -343,8 +344,8 @@ static void Run( intf_thread_t *p_intf )
     while( !p_intf->b_die )
     {
         FlushQueue( p_intf->p_sys->p_sub, p_intf->p_sys->p_file,
-                    p_intf->p_sys->i_mode, p_intf->p_libvlc->i_verbose );
-
+                    p_intf->p_sys->i_mode,
+                    var_CreateGetInteger( p_intf, "verbose" ) );
         if( p_intf->p_sys->p_rrd )
             DoRRD( p_intf );
 




More information about the vlc-devel mailing list