Mercurial > mplayer.hg
changeset 35158:a78e2453e188
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.
author | ib |
---|---|
date | Thu, 18 Oct 2012 12:07:59 +0000 |
parents | c9cd5be20162 |
children | ade40c1d69b8 |
files | gui/ui/gtk/menu.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/ui/gtk/menu.c Wed Oct 17 20:14:28 2012 +0000 +++ b/gui/ui/gtk/menu.c Thu Oct 18 12:07:59 2012 +0000 @@ -396,7 +396,7 @@ 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