Mercurial > mplayer.hg
annotate 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 |
rev | line source |
---|---|
3096 | 1 // prototypes: |
9633
12b1790038b0
64bit libao2 fix by Jens Axboe <mplayer-dev@kernel.dk>
alex
parents:
3316
diff
changeset
|
2 static int control(int cmd, void *arg); |
3107 | 3 static int init(); |
3096 | 4 static void uninit(); |
5 static void reset(); | |
3107 | 6 static int play(); |
3096 | 7 |
3316 | 8 #define LIBAO_PLUGIN_EXTERN(x) ao_plugin_functions_t audio_plugin_##x =\ |
3096 | 9 {\ |
10 &info,\ | |
11 control,\ | |
12 init,\ | |
13 uninit,\ | |
14 reset,\ | |
15 play,\ | |
16 }; |