Commit 81092b2d authored by Karl Heyes's avatar Karl Heyes
Browse files

Fix for when PCM-based metadata updates occur and resampling is in use. This

had shown up as an assert error, causing a termination of ices.

svn path=/trunk/ices/; revision=4581
parent 2e1acf19
/* stream_shared.c
* - Stream utility functions.
*
* $Id: stream_shared.c,v 1.15 2003/03/22 02:27:55 karl Exp $
* $Id: stream_shared.c,v 1.16 2003/04/04 16:32:16 karl Exp $
*
* Copyright (c) 2001 Michael Smith <msmith@labyrinth.net.au>
*
......@@ -146,6 +146,9 @@ int process_and_send_buffer(stream_description *sdsc, ref_buffer *buffer)
resample_finish(sdsc->resamp);
encode_data_float(sdsc->enc, sdsc->resamp->buffers,
sdsc->resamp->buffill);
resample_clear(sdsc->resamp);
sdsc->resamp = resample_initialise (sdsc->stream->channels,
sdsc->stream->resampleinrate, sdsc->stream->resampleoutrate);
}
encode_finish(sdsc->enc);
while(encode_flush(sdsc->enc, &og) != 0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment