[vlc-commits] SVCDSub: do not reinvent msg_Dbg

Jean-Baptiste Kempf git at videolan.org
Fri Nov 21 17:47:54 CET 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Nov 21 17:47:23 2014 +0100| [fd1f428e62dabe1083d6427c59d8af091128214b] | committer: Jean-Baptiste Kempf

SVCDSub: do not reinvent msg_Dbg

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

 modules/codec/svcdsub.c |   13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/modules/codec/svcdsub.c b/modules/codec/svcdsub.c
index 574e2d4..a18fa69 100644
--- a/modules/codec/svcdsub.c
+++ b/modules/codec/svcdsub.c
@@ -80,13 +80,6 @@ typedef enum  {
   SUBTITLE_BLOCK_COMPLETE = 2
 } packet_state_t;
 
-#ifndef NDEBUG
-# define dbg_print( s, args...) \
-     msg_Dbg(p_dec, "%s: "s, __func__ , ##args)
-#else
-# define dbg_print( s, args...)
-#endif
-
 struct decoder_sys_t
 {
   packet_state_t i_state; /* data-gathering state for this subtitle */
@@ -174,7 +167,9 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
 {
     block_t *p_block, *p_spu;
 
-    dbg_print( "" );
+#ifndef NDEBUG
+    msg_Dbg( p_dec, "Decode" );
+#endif
 
     if( pp_block == NULL || *pp_block == NULL ) return NULL;
 
@@ -314,7 +309,7 @@ static block_t *Reassemble( decoder_t *p_dec, block_t *p_block )
                       p_spu->i_buffer, p_sys->i_spu_size );
         }
 
-        dbg_print( "subtitle packet complete, size=%zu", p_spu->i_buffer );
+        msg_Dbg( p_dec, "subtitle packet complete, size=%zu", p_spu->i_buffer );
 
         p_sys->i_state = SUBTITLE_BLOCK_EMPTY;
         p_sys->p_spu = 0;



More information about the vlc-commits mailing list