<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Not sure what you want attached, but here are the
changes and the file. This patch fixes comments within the video container
file (tested with .mkv files) by no longer displaying text contained between {
}'s.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Aaron</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>$ svn diff<BR>Index:
modules/codec/subsdec.c<BR>===================================================================<BR>---
modules/codec/subsdec.c (revision 18691)<BR>+++
modules/codec/subsdec.c (working copy)<BR>@@ -473,6
+473,7 @@</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> psz_new_subtitle = malloc(
strlen( psz_buffer_sub ) + 1);<BR> i_text =
0;<BR>+ vlc_bool_t b_within_comment =
VLC_FALSE;<BR> while( psz_buffer_sub[0] != '\0'
)<BR>
{<BR> if( psz_buffer_sub[0] ==
'\\' && psz_buffer_sub[1] == 'n' )<BR>@@ -498,12 +499,28
@@<BR>
}<BR>
psz_buffer_sub++;<BR>
}<BR>-
else<BR>+
else if ( psz_buffer_sub[0] == '{'
)<BR>+
{<BR>+
b_within_comment =
VLC_TRUE;<BR>+
psz_buffer_sub++;<BR>+
msg_Dbg( p_dec, "started a comment"
);<BR>+
}<BR>+
else if ( psz_buffer_sub[0] == '}'
)<BR>+
{<BR>+
b_within_comment =
VLC_FALSE;<BR>+
psz_buffer_sub++;<BR>+
msg_Dbg( p_dec, "ended a comment"
);<BR>+
}<BR>+ else if ( b_within_comment ==
VLC_FALSE )<BR>
{<BR>
psz_new_subtitle[i_text] =
psz_buffer_sub[0];<BR>
i_text++;<BR>
psz_buffer_sub++;<BR>
}<BR>+
else<BR>+
{<BR>+
psz_buffer_sub++;<BR>+
}<BR> }<BR>
psz_new_subtitle[i_text] = '\0';</FONT></DIV></BODY></HTML>