GstBaseSink: avoid calling preroll multiple times
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 3 Feb 2009 11:52:49 +0000 (12:52 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 3 Feb 2009 11:52:49 +0000 (12:52 +0100)
commitfe4233120c2994e30551bfd932cea6e41a6ba8a7
treedc96436113a1494c2a9beea5205d22f9f46bc2f6
parent8a080229c79e6b35db3772c6e1de26dd05fb7e8d
GstBaseSink: avoid calling preroll multiple times

Fix a regression introduced by fix for #567725 in commit
1c7ab4ed4f19b63ba046a6f2fe7d09a6c17357c5. We should only call the preroll
function once namely when we did not yet commit the state change.

Add a unit test to check that we call the preroll function when interrupting the
clock_wait (see #567725).

Add a unit test to check that we only call the preroll function once.
libs/gst/base/gstbasesink.c
tests/check/elements/fakesink.c