changeset 30585:2ed1972eb23b

Add header for demux_ogg_open, init_avi_with_ogg; avoids forward declarations.
author diego
date Wed, 17 Feb 2010 23:36:44 +0000
parents 8239ceb64ff7
children 84a83a93046a
files libmpdemux/demux_avi.c libmpdemux/demux_ogg.c libmpdemux/demux_ogg.h
diffstat 3 files changed, 29 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_avi.c	Wed Feb 17 23:33:17 2010 +0000
+++ b/libmpdemux/demux_avi.c	Wed Feb 17 23:36:44 2010 +0000
@@ -30,12 +30,9 @@
 #include "stream/stream.h"
 #include "demuxer.h"
 #include "stheader.h"
-
+#include "demux_ogg.h"
 #include "aviheader.h"
 
-demuxer_t* init_avi_with_ogg(demuxer_t* demuxer);
-int demux_ogg_open(demuxer_t* demuxer);
-
 extern const demuxer_desc_t demuxer_desc_avi_ni;
 extern const demuxer_desc_t demuxer_desc_avi_nini;
 
--- a/libmpdemux/demux_ogg.c	Wed Feb 17 23:33:17 2010 +0000
+++ b/libmpdemux/demux_ogg.c	Wed Feb 17 23:36:44 2010 +0000
@@ -32,6 +32,7 @@
 #include "stheader.h"
 #include "libavutil/intreadwrite.h"
 #include "demux_mov.h"
+#include "demux_ogg.h"
 
 #define FOURCC_VORBIS mmioFOURCC('v', 'r', 'b', 's')
 #define FOURCC_SPEEX  mmioFOURCC('s', 'p', 'x', ' ')
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libmpdemux/demux_ogg.h	Wed Feb 17 23:36:44 2010 +0000
@@ -0,0 +1,27 @@
+/*
+ * This file is part of MPlayer.
+ *
+ * MPlayer is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * MPlayer is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with MPlayer; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef MPLAYER_DEMUX_OGG_H
+#define MPLAYER_DEMUX_OGG_H
+
+#include "demuxer.h"
+
+int demux_ogg_open(demuxer_t *demuxer);
+demuxer_t *init_avi_with_ogg(demuxer_t *demuxer);
+
+#endif /* MPLAYER_DEMUX_OGG_H */