[MPlayer-cvslog] r35252 - trunk/gui/ui/gtk/menu.c

ib subversion at mplayerhq.hu
Thu Oct 18 14:07:59 CEST 2012


Author: ib
Date: Thu Oct 18 14:07:59 2012
New Revision: 35252

Log:
Fix segmentation fault.

The language might be unknown which will cause a crash while building
the GUI menu for DVD audio or subtitle channel access.

Modified:
   trunk/gui/ui/gtk/menu.c

Modified: trunk/gui/ui/gtk/menu.c
==============================================================================
--- trunk/gui/ui/gtk/menu.c	Wed Oct 17 22:14:28 2012	(r35251)
+++ trunk/gui/ui/gtk/menu.c	Thu Oct 18 14:07:59 2012	(r35252)
@@ -396,7 +396,7 @@ static const char * GetLanguage( int lan
  unsigned int i;
  for ( i=0;i<sizeof( Languages ) / sizeof( Languages_t );i++ )
   if ( Languages[i].id == language ) return Languages[i].name;
- return NULL;
+ return "Unknown";
 }
 #endif
 


More information about the MPlayer-cvslog mailing list