[MPlayer-cvslog] r32802 - trunk/gui/mplayer/gui_common.c

Clément Bœsch ubitux at gmail.com
Thu Jan 20 20:40:57 CET 2011


On Thu, Jan 20, 2011 at 11:23:06AM +0100, ib wrote:
> Author: ib
> Date: Thu Jan 20 11:23:06 2011
> New Revision: 32802
> 
> Log:
> Translate messages shown in the GUI window(s) only from UTF-8
> if they are in UTF-8, i.e. check the conversation
> 
> Modified:
>    trunk/gui/mplayer/gui_common.c
> 
> Modified: trunk/gui/mplayer/gui_common.c
> ==============================================================================
> --- trunk/gui/mplayer/gui_common.c	Thu Jan 20 10:41:43 2011	(r32801)
> +++ trunk/gui/mplayer/gui_common.c	Thu Jan 20 11:23:06 2011	(r32802)
> @@ -77,7 +77,7 @@ static inline void TranslateFilename( in
>            else
>             {
>              msg = g_filename_from_utf8( MSGTR_NoFileLoaded, -1, NULL, NULL, NULL );
> -            av_strlcpy( tmp, msg, tmplen );
> +            av_strlcpy( tmp, ( msg ? msg : MSGTR_NoFileLoaded ), tmplen );

Do not bother to change it here, but those parentheses are pointless.

-- 
Clément B.


More information about the MPlayer-cvslog mailing list