summaryrefslogtreecommitdiffstats
path: root/ext/speex/gstspeexdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/speex/gstspeexdec.c')
-rw-r--r--ext/speex/gstspeexdec.c2
1 files changed, 1 insertions, 1 deletions
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);
}