Commit 9105ab0a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

TS demux: kill warnings

parent d2c15baf
...@@ -1673,7 +1673,7 @@ static void ParsePES( demux_t *p_demux, ts_pid_t *pid ) ...@@ -1673,7 +1673,7 @@ static void ParsePES( demux_t *p_demux, ts_pid_t *pid )
/* FIXME find real max size */ /* FIXME find real max size */
/* const int i_max = */ block_ChainExtract( p_pes, header, 34 ); /* const int i_max = */ block_ChainExtract( p_pes, header, 34 );
if( header[0] != 0 || header[1] != 0 || header[2] != 1 ) if( header[0] != 0 || header[1] != 0 || header[2] != 1 )
{ {
if( !p_demux->p_sys->b_silent ) if( !p_demux->p_sys->b_silent )
...@@ -2809,7 +2809,7 @@ static void SDTCallBack( demux_t *p_demux, dvbpsi_sdt_t *p_sdt ) ...@@ -2809,7 +2809,7 @@ static void SDTCallBack( demux_t *p_demux, dvbpsi_sdt_t *p_sdt )
{ {
const size_t i_length = strlen(ppsz_broken_providers[i]); const size_t i_length = strlen(ppsz_broken_providers[i]);
if( pD->i_service_provider_name_length == i_length && if( pD->i_service_provider_name_length == i_length &&
!strncmp( pD->i_service_provider_name, ppsz_broken_providers[i], i_length ) ) !strncmp( (char *)pD->i_service_provider_name, ppsz_broken_providers[i], i_length ) )
p_sys->b_broken_charset = true; p_sys->b_broken_charset = true;
} }
...@@ -3505,7 +3505,7 @@ static void PMTSetupEsDvbSubtitle( demux_t *p_demux, ts_pid_t *pid, ...@@ -3505,7 +3505,7 @@ static void PMTSetupEsDvbSubtitle( demux_t *p_demux, ts_pid_t *pid,
/* */ /* */
const dvbpsi_subtitle_t *p = &p_sub->p_subtitle[i]; const dvbpsi_subtitle_t *p = &p_sub->p_subtitle[i];
p_es->fmt.psz_language = strndup( p->i_iso6392_language_code, 3 ); p_es->fmt.psz_language = strndup( (char *)p->i_iso6392_language_code, 3 );
switch( p->i_subtitling_type ) switch( p->i_subtitling_type )
{ {
case 0x10: /* unspec. */ case 0x10: /* unspec. */
......
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