basesink: Always render prepared buffer
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Thu, 1 May 2014 14:37:18 +0000 (10:37 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Fri, 2 May 2014 22:52:44 +0000 (18:52 -0400)
commit3895e431bd8e894b060c514f89618d7c74a84dfa
tree7e6e44aaf4c899aca9037639d422204c68e82ecf
parent58a574e523d8ca2eaab9946c67114bd24c8939e8
basesink: Always render prepared buffer

Currently, if prepare() takes too much time, we skip the call to render().
The side effect of this, is that we endup starving the render(). The solution
in this patch is to always render frames that are on time before prepare() is
executed. This will maximize the number of frames we display and smoothly
degrade the rendering performance.

https://bugzilla.gnome.org/show_bug.cgi?id=729335
libs/gst/base/gstbasesink.c