null-sink: correct update of timestamp when state changes to RUNNING or IDLE
authorGeorg Chini <georg@chini.tk>
Sat, 24 Oct 2015 11:00:39 +0000 (13:00 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Sun, 25 Oct 2015 14:36:51 +0000 (16:36 +0200)
commit2902cdc4ca6416ec85ce32a76fac2a99910aaee8
treeab36dfedb4b1ceb181def904b29c1bd51c14361d
parentfcbbe34e001b9bee3e73a663e9bf9ddc11c0a1d5
null-sink: correct update of timestamp when state changes to RUNNING or IDLE

u->timestamp should be reset to "now" when the sink state changes from
INIT or SUSPENDED to IDLE or RUNNING.
Thanks to Olivier Delbeke for reporting the bug and testing the patch.
Bug report is here:
http://lists.freedesktop.org/archives/pulseaudio-discuss/2015-October/024553.html
src/modules/module-null-sink.c