Mercurial > mplayer.hg
view libao2/audio_plugin_internal.h @ 13316:0d17bef9894d
* Changed malloc and strncpy to strdup. Less code.
* More error checking. If malloc or strdup fails, print message and exit.
* Free malloc'd memory when uninit is called.
* Moved default of jpeg_outdir to preinit, so it is always malloc'd and can
easily be freed at uninit.
author | ivo |
---|---|
date | Sat, 11 Sep 2004 19:59:31 +0000 |
parents | 12b1790038b0 |
children |
line wrap: on
line source
// prototypes: static int control(int cmd, void *arg); static int init(); static void uninit(); static void reset(); static int play(); #define LIBAO_PLUGIN_EXTERN(x) ao_plugin_functions_t audio_plugin_##x =\ {\ &info,\ control,\ init,\ uninit,\ reset,\ play,\ };