summaryrefslogtreecommitdiff
path: root/src/libreal/audio_decoder.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-03-16 20:02:33 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-03-16 20:02:33 +0000
commitf07c6cb7930d9f6e9842cc671ed86f687d456e57 (patch)
tree9e73221041386779a4c5a731b991edb8084df643 /src/libreal/audio_decoder.c
parent51d097f9144193c98d881f14c4e4bd6b579574f2 (diff)
downloadxine-lib-f07c6cb7930d9f6e9842cc671ed86f687d456e57.tar.gz
xine-lib-f07c6cb7930d9f6e9842cc671ed86f687d456e57.tar.bz2
Move the __builtin functions in a different unit, and define them only on Alpha as that's the only architecture for which the binary codecs available on MPlayer site are needing them. Newer versions needs not these symbols, and for safety, I'd rather avoid messing with the global namespace.
CVS patchset: 8679 CVS date: 2007/03/16 20:02:33
Diffstat (limited to 'src/libreal/audio_decoder.c')
-rw-r--r--src/libreal/audio_decoder.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/src/libreal/audio_decoder.c b/src/libreal/audio_decoder.c
index d60e8f8e1..ebffce31d 100644
--- a/src/libreal/audio_decoder.c
+++ b/src/libreal/audio_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: audio_decoder.c,v 1.52 2007/03/16 19:31:57 dgp85 Exp $
+ * $Id: audio_decoder.c,v 1.53 2007/03/16 20:02:33 dgp85 Exp $
*
* thin layer to use real binary-only codecs in xine
*
@@ -102,22 +102,6 @@ typedef struct {
void *extras;
} ra_init_t;
-void *__builtin_new(unsigned long size);
-void __builtin_delete (void *foo);
-void *__builtin_vec_new(unsigned long size);
-void __builtin_vec_delete(void *mem);
-void __pure_virtual(void);
-
-
-void *__builtin_new(unsigned long size) {
- return malloc(size);
-}
-
-void __builtin_delete (void *foo) {
- /* printf ("libareal: __builtin_delete called\n"); */
- free (foo);
-}
-
static int load_syms_linux (realdec_decoder_t *this, char *codec_name,
const char *alt_codec_name) {
@@ -627,24 +611,6 @@ static void dispose_class (audio_decoder_class_t *this) {
}
/*
- * some fake functions to make real codecs happy
- */
-void *__builtin_vec_new(unsigned long size) EXPORTED;
-void __builtin_vec_delete(void *mem) EXPORTED;
-void __pure_virtual(void) EXPORTED;
-
-void *__builtin_vec_new(unsigned long size) {
- return malloc(size);
-}
-void __builtin_vec_delete(void *mem) {
- free(mem);
-}
-void __pure_virtual(void) {
- lprintf("libareal: FATAL: __pure_virtual() called!\n");
- /* exit(1); */
-}
-
-/*
* real audio codec loader
*/