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
This commit is contained in:
Wim Taymans 2013-08-20 14:36:59 +02:00
parent 533f26fc99
commit 587dc055e9

View 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;
}
}