summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2008-05-13 08:21:26 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-05-13 08:21:26 +0000
commitaa959152d139a609371b40b9b2fd39cee16cf942 (patch)
tree1108c5c10f03d7963da440b9be41d31684a5a97f
parent894206be3ddf0c7e6adb7b768a34c9262444ef3a (diff)
ext/speex/gstspeexdec.c: Fix the calculation of the duration of the concealment packets.
Original commit message from CVS: * ext/speex/gstspeexdec.c: (speex_dec_sink_event): Fix the calculation of the duration of the concealment packets.
-rw-r--r--ChangeLog5
-rw-r--r--ext/speex/gstspeexdec.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6f53d8c6..319f84a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-13 Wim Taymans <wim.taymans@collabora.co.uk>
+
+ * ext/speex/gstspeexdec.c: (speex_dec_sink_event):
+ Fix the calculation of the duration of the concealment packets.
+
2008-05-12 Wim Taymans <wim.taymans@collabora.co.uk>
Based on patch by: Olivier Crete <tester at tester dot ca>
diff --git a/ext/speex/gstspeexdec.c b/ext/speex/gstspeexdec.c
index c0cba930..a42de618 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);
}