jitterbuffer: handle EOS
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 20 Aug 2013 12:36:59 +0000 (14:36 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 20 Aug 2013 12:36:59 +0000 (14:36 +0200)
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

index 5e66df7..9d2645e 100644 (file)
@@ -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;
   }
 }