diff options
author | Max Kellermann <max@duempel.org> | 2009-01-25 13:44:39 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-25 13:44:39 +0100 |
commit | 85f7e964dee606ecd6ceb2da7ce0e85d90c3f5ce (patch) | |
tree | b14fd34b5924c6fbfa6f59d6b0c63084ff9449c2 /src/player_thread.c | |
parent | d628eb3e8bb2b7e9db5ef6f5b907ac2a81afc86a (diff) | |
download | mpd-85f7e964dee606ecd6ceb2da7ce0e85d90c3f5ce.tar.gz mpd-85f7e964dee606ecd6ceb2da7ce0e85d90c3f5ce.tar.xz mpd-85f7e964dee606ecd6ceb2da7ce0e85d90c3f5ce.zip |
player_thread: start decoder thread in player thread
Start the decoder thread when the player thread starts. The decoder
thread is already stopped by the player thread.
Diffstat (limited to 'src/player_thread.c')
-rw-r--r-- | src/player_thread.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/player_thread.c b/src/player_thread.c index c8f4f69f1..d150c4303 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -19,6 +19,7 @@ #include "player_thread.h" #include "player_control.h" #include "decoder_control.h" +#include "decoder_thread.h" #include "audio.h" #include "pcm_volume.h" #include "path.h" @@ -507,6 +508,8 @@ static void do_play(void) static gpointer player_task(G_GNUC_UNUSED gpointer arg) { + decoder_thread_start(); + while (1) { switch (pc.command) { case PLAYER_COMMAND_PLAY: |