basesink: clean up the need_preroll variable
authorWim Taymans <wtaymans@redhat.com>
Wed, 11 Mar 2015 15:36:29 +0000 (16:36 +0100)
committerWim Taymans <wtaymans@redhat.com>
Wed, 11 Mar 2015 15:40:17 +0000 (16:40 +0100)
commit4b174b14f51b4d405674c0d1054e82f5dbc82094
treebeeba290bf9c174dfa9290eadf5d2f49db49327b
parent8ce1f4d470d337d734d88daab2d31f40512c3f81
basesink: clean up the need_preroll variable

Based on patch from Song Bing <b06498@freescale.com>

Don't just set the need_preroll flag to TRUE in all cases. When we
are already prerolled it needs to be set to FALSE and when we go to
READY we should not touch it. We should only set it to TRUE in other
cases, like what the code above does.

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