Commit 85f7e964 authored by Max Kellermann's avatar Max Kellermann

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.
parent d628eb3e
......@@ -31,7 +31,6 @@
#include "path.h"
#include "mapper.h"
#include "pipe.h"
#include "decoder_thread.h"
#include "decoder_control.h"
#include "player_control.h"
#include "stats.h"
......@@ -261,7 +260,6 @@ int main(int argc, char *argv[])
initZeroconf();
decoder_thread_start();
player_create();
state_file_init(config_get_path(CONF_STATE_FILE));
......
......@@ -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:
......
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