Commit c98bc4a2 authored by Max Kellermann's avatar Max Kellermann

playlist/PlaylistRegistry: use LockRewind() instead of Rewind()

Fixes a deadlock caused by commit 31ab78ae. That commit was not actually bad - just these two calls have always been bad, which went unnoticed for a long time.
parent 014f8cd6
......@@ -195,7 +195,7 @@ playlist_list_open_stream_mime2(InputStreamPtr &&is, const char *mime)
/* rewind the stream, so each plugin gets a
fresh start */
try {
is->Rewind();
is->LockRewind();
} catch (const std::runtime_error &) {
}
......@@ -239,7 +239,7 @@ playlist_list_open_stream_suffix(InputStreamPtr &&is, const char *suffix)
/* rewind the stream, so each plugin gets a
fresh start */
try {
is->Rewind();
is->LockRewind();
} catch (const std::runtime_error &) {
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment