Mercurial > audlegacy-plugins
diff src/alac/plugin.c @ 78:096db10ce25f trunk
[svn] - a few concurrency fixes
author | nenolod |
---|---|
date | Mon, 02 Oct 2006 19:55:45 -0700 |
parents | c2981235af26 |
children | 722fd456ae1a |
line wrap: on
line diff
--- a/src/alac/plugin.c Mon Oct 02 18:14:15 2006 -0700 +++ b/src/alac/plugin.c Mon Oct 02 19:55:45 2006 -0700 @@ -232,10 +232,6 @@ free(pDestBuffer); } -static void init_sound_converter(demux_res_t *demux_res) -{ -} - gpointer decode_thread(void *args) { demux_res_t demux_res; @@ -245,6 +241,8 @@ VFSFile *input_file; stream_t *input_stream; + memset(&demux_res, '\0', sizeof(demux_res_t)); + set_endian(); input_file = vfs_fopen((char *) args, "rb"); @@ -258,6 +256,8 @@ if (!qtmovie_read(input_stream, &demux_res)) return 0; + demux_res.stream = input_stream; + /* initialise the sound converter */ demux_res.alac = create_alac(demux_res.sample_size, demux_res.num_channels); alac_set_info(demux_res.alac, demux_res.codecdata);