changeset 32956:cde5d1cbb4bc

Move global variables to top of file. Additionally: remove needless explicit initialization.
author ib
date Mon, 07 Mar 2011 20:36:06 +0000
parents e12d6cd72b75
children ad8d85c1310f
files gui/mplayer/gui_common.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;