# HG changeset patch # User ib # Date 1299530166 0 # Node ID cde5d1cbb4bc73a514465f544920fdcfa5f26be2 # Parent e12d6cd72b75dd4b935463b1b586b2000331f5c0 Move global variables to top of file. Additionally: remove needless explicit initialization. diff -r e12d6cd72b75 -r cde5d1cbb4bc gui/mplayer/gui_common.c --- a/gui/mplayer/gui_common.c Mon Mar 07 20:27:29 2011 +0000 +++ b/gui/mplayer/gui_common.c Mon Mar 07 20:36:06 2011 +0000 @@ -38,6 +38,9 @@ #include "access_mpcontext.h" #include "libavutil/avstring.h" +static char * image_buffer; +static int image_width; + static inline void TranslateFilename( int c,char * tmp,size_t tmplen ) { int i; @@ -184,9 +187,6 @@ return trbuf; } -static char * image_buffer = NULL; -static int image_width = 0; - void PutImage( txSample * bf,int x,int y,int max,int ofs ) { int i=0,ix,iy;