[MPlayer-dev-eng] [Patch] fix compile+link of demux_ogg.c on some gcc's

Moritz Bunkus moritz at bunkus.org
Fri Oct 29 10:32:40 CEST 2004


Hey,

No, the right way to do this is to have a function prototype before the
use. Moving a complete function around like that is not acceptable.

Can you please test if the attached patch fixes your problem?

Mosu

-- 
If Darl McBride was in charge, he'd probably make marriage
unconstitutional too, since clearly it de-emphasizes the commercial
nature of normal human interaction, and probably is a major impediment
to the commercial growth of prostitution. - Linus Torvalds
-------------- next part --------------
Index: demux_ogg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ogg.c,v
retrieving revision 1.59
diff -u -u -r1.59 demux_ogg.c
--- demux_ogg.c	14 Oct 2004 15:09:34 -0000	1.59
+++ demux_ogg.c	29 Oct 2004 08:32:31 -0000
@@ -425,6 +425,8 @@
   return 0;
 }
 
+static int demux_ogg_sub_reverse_id(demuxer_t *demuxer, int id);
+
 /// Try to print out comments and also check for LANGUAGE= tag
 static void demux_ogg_check_comments(demuxer_t *d, ogg_stream_t *os, int id, vorbis_comment *vc)
 {


More information about the MPlayer-dev-eng mailing list