[vlc-devel] commit: Be more strict in provider name matching ( Marian Ďurkovič )

git version control git at videolan.org
Fri Sep 11 08:41:15 CEST 2009


vlc | branch: 1.0-bugfix | Marian Ďurkovič <md at bts.sk> | Fri Sep 11 08:27:36 2009 +0200| [f5e32002ff406f2798ae33d9db6df3df41b62b11] | committer: Marian Ďurkovič 

Be more strict in provider name matching
(cherry picked from commit bbea92e7e5ebb63681092bb5ebb191234fcecc07)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f5e32002ff406f2798ae33d9db6df3df41b62b11
---

 modules/demux/ts.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index f2e76eb..1564c2b 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -2785,8 +2785,8 @@ static void SDTCallBack( demux_t *p_demux, dvbpsi_sdt_t *p_sdt )
                 if ( p_sdt->i_network_id == 133 )
                    i_broken_epg = 1;  /* SKY DE & BetaDigital use ISO8859-1 */
 
-                if ( !strncmp(pD->i_service_provider_name, "CSAT",
-                              pD->i_service_provider_name_length) )
+                if ( (pD->i_service_provider_name_length == 4) &&
+                     !strncmp(pD->i_service_provider_name, "CSAT", 4) )
                    i_broken_epg = 1;  /* CanalSat FR uses ISO8859-1 */
 
                 /* FIXME: Digital+ ES also uses ISO8859-1 */




More information about the vlc-devel mailing list