[MPlayer-dev-eng] Fix for rev 30598

Bernd Ernesti mplayer-dev-eng at lists.veego.de
Tue Feb 16 18:37:50 CET 2010


Hi,

r30598 | diego | 2010-02-16 17:22:17 +0100 (Tue, 16 Feb 2010) | 2 lines
libvo: Mark functions not used outside of their files as static.


that introduced the following error:

libvo/spuenc.c:275: error: static declaration of 'pixbuf_delete' follows non-static declaration
libvo/spuenc.h:44: error: previous declaration of 'pixbuf_delete' was here

Either add the static to spuenc.h or remove pixbuf_delete like it was
mentioned in the changelog because it is not used at all.

Attached is the patch for the second option.

Bernd

-------------- next part --------------
Index: libvo/spuenc.c
===================================================================
--- libvo/spuenc.c	(revision 30599)
+++ libvo/spuenc.c	(working copy)
@@ -271,8 +271,3 @@
 	}
 }
 
-static void
-pixbuf_delete( pixbuf* pb ) {
-	free( pb->pixels );
-}
-
Index: libvo/spuenc.h
===================================================================
--- libvo/spuenc.h	(revision 30599)
+++ libvo/spuenc.h	(working copy)
@@ -41,6 +41,5 @@
 } encodedata;
 
 void pixbuf_encode_rle(int x, int y, int w, int h, char *inbuf, int stride, encodedata *ed);
-void pixbuf_delete(pixbuf* pb);
 
 #endif /* MPLAYER_SPUENC_H */


More information about the MPlayer-dev-eng mailing list