stream-restore: make version check stricter when dropping old entries
authorTanu Kaskinen <tanuk@iki.fi>
Fri, 9 Jul 2021 09:32:27 +0000 (12:32 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Fri, 9 Jul 2021 09:32:27 +0000 (12:32 +0300)
commit13fd21a9c9a80aab0ea8fae99d54d9a4ee75c188
tree03a06c194f81db81abb22b7cbb7b11e35e988488
parent02cc1f8b91b9bdb1590b66a8e6fac4fc2bdb0a5b
stream-restore: make version check stricter when dropping old entries

If we increment ENTRY_VERSION in the future, the old code would drop
entries with version 2, but we only want to drop entries with version 1.

This issue was spotted by Igor Kovalenko:
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/298#note_983365

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/604>
src/modules/module-stream-restore.c