diff --git a/NEWS b/NEWS index e071cfa97..3712f6fed 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,6 @@ ver 0.23.2 (not yet released) +* input + - nfs: fix playback bug * output - pipewire: send artist and title to PipeWire * neighbor diff --git a/src/lib/nfs/FileReader.hxx b/src/lib/nfs/FileReader.hxx index 5869eb2c6..8d257efdd 100644 --- a/src/lib/nfs/FileReader.hxx +++ b/src/lib/nfs/FileReader.hxx @@ -22,7 +22,7 @@ #include "Lease.hxx" #include "Callback.hxx" -#include "event/DeferEvent.hxx" +#include "event/InjectEvent.hxx" #include "util/Compiler.h" #include @@ -63,7 +63,10 @@ class NfsFileReader : NfsLease, NfsCallback { nfsfh *fh; - DeferEvent defer_open; + /** + * To inject the Open() call into the I/O thread. + */ + InjectEvent defer_open; public: NfsFileReader() noexcept; @@ -150,7 +153,7 @@ private: void OnNfsCallback(unsigned status, void *data) noexcept final; void OnNfsError(std::exception_ptr &&e) noexcept final; - /* DeferEvent callback */ + /* InjectEvent callback */ void OnDeferredOpen() noexcept; };