vlc | branch: master | Francois Cartegnie <[email protected]> | Thu Mar  2 
13:00:50 2017 +0100| [6c6bb1634aa0a2bff329871d94c690c2a9202d42] | committer: 
Francois Cartegnie

codec: substtml: improve debugging

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

 modules/codec/ttml/substtml.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/codec/ttml/substtml.c b/modules/codec/ttml/substtml.c
index d6efcc0..f41729c 100644
--- a/modules/codec/ttml/substtml.c
+++ b/modules/codec/ttml/substtml.c
@@ -917,6 +917,13 @@ static int DecodeBlock( decoder_t *p_dec, block_t *p_block 
)
         return VLCDEC_SUCCESS;
 
     int ret = ParseBlock( p_dec, p_block );
+#ifdef TTML_DEBUG
+    if( p_block->i_buffer )
+    {
+        p_block->p_buffer[p_block->i_buffer - 1] = 0;
+        msg_Dbg(p_dec,"time %ld %s", p_block->i_dts, p_block->p_buffer);
+    }
+#endif
     block_Release( p_block );
     return ret;
 }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to