[vlc-commits] codec: substtml: improve debugging
Francois Cartegnie
git at videolan.org
Thu Mar 2 13:04:48 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | 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;
}
More information about the vlc-commits
mailing list