[vlc-devel] commit: Fixed a segfault after iso639_lang_t p_languages API breakage. ( Laurent Aimar )
git version control
git at videolan.org
Tue Jul 14 01:34:48 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Jul 14 01:31:21 2009 +0200| [f36e9bec13243624905f286aeade229aa21a732e] | committer: Laurent Aimar
Fixed a segfault after iso639_lang_t p_languages API breakage.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f36e9bec13243624905f286aeade229aa21a732e
---
modules/access/dvdnav.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index ed1da38..8aa8353 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -911,7 +911,7 @@ static char *DemuxGetLanguageCode( demux_t *p_demux, const char *psz_var )
if( ( p = strchr( psz_lang, ',' ) ) )
*p = '\0';
- for( pl = p_languages; pl->psz_iso639_1 != NULL; pl++ )
+ for( pl = p_languages; pl->psz_eng_name != NULL; pl++ )
{
if( *psz_lang == '\0' )
continue;
@@ -925,8 +925,8 @@ static char *DemuxGetLanguageCode( demux_t *p_demux, const char *psz_var )
free( psz_lang );
- if( pl->psz_iso639_1 != NULL )
- return strdup( pl->psz_iso639_1 );
+ if( pl->psz_eng_name != NULL )
+ return strdup( pl->psz_eng_name );
return strdup(LANGUAGE_DEFAULT);
}
More information about the vlc-devel
mailing list