Commit a11941c5 authored by Marian Ďurkovič's avatar Marian Ďurkovič

EPG: Catch a replace EIT-coded CR/LFs

parent 475b627e
...@@ -2705,6 +2705,18 @@ static char *EITConvertToUTF8( const unsigned char *psz_instring, ...@@ -2705,6 +2705,18 @@ static char *EITConvertToUTF8( const unsigned char *psz_instring,
vlc_iconv_close( iconv_handle ); vlc_iconv_close( iconv_handle );
*psz_out = '\0'; *psz_out = '\0';
/* Replace EIT-coded CR/LFs by spaces */
unsigned char *pbuf = (unsigned char *)psz_outstring;
for( ; pbuf < (unsigned char *)psz_out ; pbuf++)
{
if( pbuf[0] == 0xc2 && pbuf[1] == 0x8a )
{
pbuf[0] = pbuf[1] = ' ';
}
}
} }
return psz_outstring; return psz_outstring;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment