Use the verbose variable, over the private i_verbose member
authorRafaël Carré <funman@videolan.org>
Mon, 5 May 2008 07:51:07 +0000 (09:51 +0200)
committerRafaël Carré <funman@videolan.org>
Mon, 5 May 2008 07:51:07 +0000 (09:51 +0200)
modules/demux/live555.cpp
modules/misc/logger.c

index 1e985f4..5c6f42e 100644 (file)
@@ -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)",
index b2d73a1..e4554d9 100644 (file)
@@ -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 );