diff options
Diffstat (limited to 'libmpcodecs/ad_realaud.c')
-rw-r--r-- | libmpcodecs/ad_realaud.c | 40 |
1 files changed, 5 insertions, 35 deletions
diff --git a/libmpcodecs/ad_realaud.c b/libmpcodecs/ad_realaud.c index 00f995cd3a..74cd5b7bb4 100644 --- a/libmpcodecs/ad_realaud.c +++ b/libmpcodecs/ad_realaud.c @@ -31,7 +31,7 @@ #include "ad_internal.h" #include "loader/wine/windef.h" -static const ad_info_t info = { +static const ad_info_t info = { "RealAudio decoder", "realaud", "Alex Beregszaszi", @@ -41,46 +41,16 @@ static const ad_info_t info = { LIBAD_EXTERN(realaud) -/* These functions are required for loading Real binary libs. - * Add forward declarations to avoid warnings with -Wmissing-prototypes. */ -void *__builtin_new(unsigned long size); -void __builtin_delete(void *ize); -void *__builtin_vec_new(unsigned long size); -void __builtin_vec_delete(void *mem); -void __pure_virtual(void); - -void *__builtin_new(unsigned long size) -{ +void *__builtin_new(unsigned long size) { return malloc(size); } -void __builtin_delete(void* ize) -{ +// required for cook's uninit: +void __builtin_delete(void* ize) { free(ize); } -void *__builtin_vec_new(unsigned long size) -{ - return malloc(size); -} - -void __builtin_vec_delete(void *mem) -{ - free(mem); -} - -void __pure_virtual(void) -{ - printf("FATAL: __pure_virtual() called!\n"); -// exit(1); -} - #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) -void ___brk_addr(void); -void ___brk_addr(void) {exit(0);} -char **__environ={NULL}; -#undef stderr -FILE *stderr=NULL; void *__ctype_b=NULL; #endif @@ -265,7 +235,7 @@ static int preinit(sh_audio_t *sh){ if (!load_syms_windows(sh->codec->dll)) #endif { - mp_msg(MSGT_DECVIDEO, MSGL_ERR, MSGTR_MissingDLLcodec, sh->codec->dll); + mp_tmsg(MSGT_DECVIDEO, MSGL_ERR, "ERROR: Could not open required DirectShow codec %s.\n", sh->codec->dll); mp_msg(MSGT_DECVIDEO, MSGL_HINT, "Read the RealAudio section of the DOCS!\n"); free(path); return 0; |