From 3c514ea708749679623ae04fc8f7ade87e51aade Mon Sep 17 00:00:00 2001 From: diego Date: Tue, 16 Feb 2010 14:52:59 +0000 Subject: [PATCH] Add header for init_global_rawdv_decoder() instead of forward declaring it. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30595 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/ad_libdv.c | 4 +--- libmpcodecs/vd_libdv.c | 1 + libmpcodecs/vd_libdv.h | 26 ++++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 libmpcodecs/vd_libdv.h diff --git a/libmpcodecs/ad_libdv.c b/libmpcodecs/ad_libdv.c index e7d0a82a54..8485a8883f 100644 --- a/libmpcodecs/ad_libdv.c +++ b/libmpcodecs/ad_libdv.c @@ -37,6 +37,7 @@ #include "libmpdemux/stheader.h" #include "ad_internal.h" +#include "vd_libdv.h" static const ad_info_t info = { @@ -49,9 +50,6 @@ static const ad_info_t info = LIBAD_EXTERN(libdv) -// defined in vd_libdv.c: -dv_decoder_t* init_global_rawdv_decoder(void); - static int preinit(sh_audio_t *sh_audio) { sh_audio->audio_out_minsize=4*DV_AUDIO_MAX_SAMPLES*2; diff --git a/libmpcodecs/vd_libdv.c b/libmpcodecs/vd_libdv.c index 02d7e2fc54..137fa7bf60 100644 --- a/libmpcodecs/vd_libdv.c +++ b/libmpcodecs/vd_libdv.c @@ -35,6 +35,7 @@ #include "libmpdemux/stheader.h" #include "vd_internal.h" +#include "vd_libdv.h" static const vd_info_t info = { diff --git a/libmpcodecs/vd_libdv.h b/libmpcodecs/vd_libdv.h new file mode 100644 index 0000000000..608d06bf21 --- /dev/null +++ b/libmpcodecs/vd_libdv.h @@ -0,0 +1,26 @@ +/* + * 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_VD_LIBDV_H +#define MPLAYER_VD_LIBDV_H + +#include + +dv_decoder_t* init_global_rawdv_decoder(void); + +#endif /* MPLAYER_VD_LIBDV_H */