baseaudiosink: correct for clock reset
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 9 Sep 2009 14:19:32 +0000 (16:19 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 9 Sep 2009 14:19:32 +0000 (16:19 +0200)
commitfe47c6c4d51ed764d823d2d797db2a13b65712e1
treeb216697bfbf5a493a6bc65275ebb90f819ea7166
parent47550f69843b776fdfd06459fe141da1aeb6d789
baseaudiosink: correct for clock reset

When going to NULL, we reset the ringbuffer so that it starts beck from 0. We
also make sure that the clock is updated with the elapsed time so that it
alsways increments even when the ringbuffer goes back to 0. When this happened
we need to adjust the sample position for the reset ringbuffer.

Fixes #594136
gst-libs/gst/audio/gstbaseaudiosink.c