From: Wim Taymans Date: Tue, 20 Aug 2013 12:36:59 +0000 (+0200) Subject: jitterbuffer: handle EOS X-Git-Tag: 1.1.4~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=587dc055e94abd31a5abdafd9859ba2733a952d9;p=platform%2Fupstream%2Fgst-plugins-good.git 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 --- diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c index 5e66df7..9d2645e 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; } }