[vlc-commits] Src: more comprehensible debug messages

Jean-Baptiste Kempf git at videolan.org
Thu Mar 17 11:37:06 CET 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Mar 17 11:36:42 2011 +0100| [fc3d65f7ba6c167dad776f1d5136a22e1db39563] | committer: Jean-Baptiste Kempf

Src: more comprehensible debug messages

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

 src/input/input.c     |    2 ++
 src/input/stream.c    |    4 ++--
 src/playlist/thread.c |    4 ++--
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 15434c8..63a1480 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -809,7 +809,9 @@ static void MainLoop( input_thread_t *p_input, bool b_interactive )
                     break;
                 }
 
+#ifndef NDEBUG
                 msg_Dbg( p_input, "control type=%d", i_type );
+#endif
 
                 if( Control( p_input, i_type, val ) )
                 {
diff --git a/src/input/stream.c b/src/input/stream.c
index 8f43b60..800e6fd 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -384,7 +384,7 @@ stream_t *stream_AccessNew( access_t *p_access, char **ppsz_list )
 
     if( p_sys->method == STREAM_METHOD_BLOCK )
     {
-        msg_Dbg( s, "Using AStream*Block" );
+        msg_Dbg( s, "Using block method for AStream*" );
         s->pf_read = AStreamReadBlock;
         s->pf_peek = AStreamPeekBlock;
 
@@ -411,7 +411,7 @@ stream_t *stream_AccessNew( access_t *p_access, char **ppsz_list )
 
         assert( p_sys->method == STREAM_METHOD_STREAM );
 
-        msg_Dbg( s, "Using AStream*Stream" );
+        msg_Dbg( s, "Using stream method for AStream*" );
 
         s->pf_read = AStreamReadStream;
         s->pf_peek = AStreamPeekStream;
diff --git a/src/playlist/thread.c b/src/playlist/thread.c
index 4bce33e..d0b2a9f 100644
--- a/src/playlist/thread.c
+++ b/src/playlist/thread.c
@@ -72,7 +72,7 @@ void playlist_Deactivate( playlist_t *p_playlist )
     /* */
     playlist_private_t *p_sys = pl_priv(p_playlist);
 
-    msg_Dbg( p_playlist, "Deactivate" );
+    msg_Dbg( p_playlist, "deactivating the playlist" );
 
     PL_LOCK;
     vlc_object_kill( p_playlist );
@@ -103,7 +103,7 @@ void playlist_Deactivate( playlist_t *p_playlist )
 
     PL_UNLOCK;
 
-    msg_Dbg( p_playlist, "Deactivated" );
+    msg_Dbg( p_playlist, "playlist correctly deactivated" );
 }
 
 /* */



More information about the vlc-commits mailing list