output/Control: move pipe initialization to the OutputThread

Un-protect the SharedPipeConsumer instance, and make it available in
the OutputThread only.  This gives more well-defined mutex protection.
This commit is contained in:
Max Kellermann
2016-12-20 23:19:12 +01:00
parent 71c72ed072
commit f86d6b0162
3 changed files with 10 additions and 4 deletions

View File

@@ -256,6 +256,11 @@ struct AudioOutput {
* The #AudioFormat requested by #Command::OPEN.
*/
AudioFormat audio_format;
/**
* The #MusicPipe passed to #Command::OPEN.
*/
const MusicPipe *pipe;
} request;
/**