From f86b94f9b4623baa999961681e44b9a838834de5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 22 Jul 2013 14:41:56 +0200 Subject: audio/decode: remove macro crap Declare decoders directly, instead of using the LIBAD_EXTERN macro. This is simpler (no weird magic) and more extensible. --- audio/decode/ad.c | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 audio/decode/ad.c (limited to 'audio/decode/ad.c') diff --git a/audio/decode/ad.c b/audio/decode/ad.c deleted file mode 100644 index 846cd146d1..0000000000 --- a/audio/decode/ad.c +++ /dev/null @@ -1,46 +0,0 @@ -/* - * audio decoder interface - * - * 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. - */ - -#include -#include -#include - -#include "config.h" - -#include "stream/stream.h" -#include "demux/demux.h" -#include "demux/stheader.h" -#include "ad.h" - -/* Missed vorbis, mad, dshow */ - -extern const ad_functions_t mpcodecs_ad_mpg123; -extern const ad_functions_t mpcodecs_ad_lavc; -extern const ad_functions_t mpcodecs_ad_spdif; - -const ad_functions_t * const mpcodecs_ad_drivers[] = -{ -#ifdef CONFIG_MPG123 - &mpcodecs_ad_mpg123, -#endif - &mpcodecs_ad_lavc, - &mpcodecs_ad_spdif, - NULL -}; -- cgit v1.2.3