From 7e4574e9684f17f0071e267327c854e8610893f9 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Mon, 19 Sep 2011 09:37:58 +0200 Subject: [PATCH] speexenc: do not use invalid buffer timestamps --- ext/speex/gstspeexenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/speex/gstspeexenc.c b/ext/speex/gstspeexenc.c index 6ace2da124..98fb2bbc7a 100644 --- a/ext/speex/gstspeexenc.c +++ b/ext/speex/gstspeexenc.c @@ -1050,6 +1050,7 @@ gst_speex_enc_chain (GstPad * pad, GstBuffer * buf) /* Check if we have a continous stream, if not drop some samples or the buffer or * insert some silence samples */ if (enc->next_ts != GST_CLOCK_TIME_NONE && + GST_BUFFER_TIMESTAMP_IS_VALID (buf) && GST_BUFFER_TIMESTAMP (buf) < enc->next_ts) { guint64 diff = enc->next_ts - GST_BUFFER_TIMESTAMP (buf); guint64 diff_bytes;