Commit 7aa4d852 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

ts: Account for potential encoding conversion failures

(cherry picked from commit db78e019)
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent e619c098
......@@ -261,9 +261,10 @@ static void SDTCallBack( demux_t *p_demux, dvbpsi_sdt_t *p_sdt )
p_sys->b_broken_charset );
msg_Dbg( p_demux, " - type=%"PRIu8" provider=%s name=%s",
pD->i_service_type, str1, str2 );
pD->i_service_type,
str1 ? str1 : "(null)", str2 ? str2 : "(null)" );
if( strcmp( "Service01", str2 ) ) /* Skip bogus libav/ffmpeg SDT */
if( str2 != NULL && strcmp( "Service01", str2 ) ) /* Skip bogus libav/ffmpeg SDT */
{
vlc_meta_SetTitle( p_meta, str2 );
vlc_meta_SetPublisher( p_meta, str1 );
......
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