From: David Flynn <[email protected]> Calling decoder_reset() is advised after a seek; where one intends to discard all partially decoded data and crash into the seekpoint.
If it is desired to do a ``spliced'' seek, ie: to finish decoding and output what is currently in the queue before moving onto the seek point, call decoder_end_of_sequence. Signed-off-by: David Flynn <[email protected]> --- schroedinger/schrodecoder.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/schroedinger/schrodecoder.c b/schroedinger/schrodecoder.c index a189c7d..e2b6d4e 100644 --- a/schroedinger/schrodecoder.c +++ b/schroedinger/schrodecoder.c @@ -327,6 +327,12 @@ schro_decoder_reset (SchroDecoder *decoder) schro_queue_clear (decoder->reference_queue); schro_queue_clear (decoder->output_queue); + schro_buflist_free (decoder->input_buflist); + decoder->input_buflist = schro_buflist_new (); + + schro_parse_sync_free (decoder->sps); + decoder->sps = schro_parse_sync_new (); + if (decoder->sequence_header_buffer) { schro_buffer_unref (decoder->sequence_header_buffer); } -- 1.5.6.5 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Schrodinger-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/schrodinger-devel
