decoder_control: removed the global variable "dc"
Allocate a decoder_control object where needed, and pass it around. This will allow more than one decoder thread one day.
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
#ifndef MPD_DECODER_THREAD_H
|
||||
#define MPD_DECODER_THREAD_H
|
||||
|
||||
void decoder_thread_start(void);
|
||||
struct decoder_control;
|
||||
|
||||
void
|
||||
decoder_thread_start(struct decoder_control *dc);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user