From 587dc055e94abd31a5abdafd9859ba2733a952d9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 20 Aug 2013 14:36:59 +0200 Subject: [PATCH] jitterbuffer: handle EOS When the queue is empty, and we received EOS, pause and push an EOS event downstream. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=706387 --- gst/rtpmanager/gstrtpjitterbuffer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index 5e66df7fc6..9d2645e1ff 100644 --- a/gst/rtpmanager/gstrtpjitterbuffer.c +++ b/gst/rtpmanager/gstrtpjitterbuffer.c @@ -2182,7 +2182,11 @@ again: wait: { GST_DEBUG_OBJECT (jitterbuffer, "no buffer, going to wait"); - return GST_FLOW_WAIT; + if (priv->eos) + result = GST_FLOW_EOS; + else + result = GST_FLOW_WAIT; + return result; } }