diff --git a/ChangeLog b/ChangeLog index 6f53d8c6b5..319f84a28b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-13 Wim Taymans + + * ext/speex/gstspeexdec.c: (speex_dec_sink_event): + Fix the calculation of the duration of the concealment packets. + 2008-05-12 Wim Taymans Based on patch by: Olivier Crete diff --git a/ext/speex/gstspeexdec.c b/ext/speex/gstspeexdec.c index c0cba93060..a42de61858 100644 --- a/ext/speex/gstspeexdec.c +++ b/ext/speex/gstspeexdec.c @@ -466,7 +466,7 @@ speex_dec_sink_event (GstPad * pad, GstEvent * event) if (dec->segment.last_stop < start) { GstClockTime duration; - duration = dec->segment.last_stop - start; + duration = start - dec->segment.last_stop; speex_dec_chain_parse_data (dec, NULL, dec->segment.last_stop, duration); }