mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
[player] Do not execute the bottom half if playback_start is called
while player is already playing (results in s segfault after adding new items through dacp clients)
This commit is contained in:
parent
16149d5c61
commit
3981c67e3a
@ -2316,7 +2316,7 @@ playback_start_item(union player_arg *cmdarg, int *retval, struct queue_item *qi
|
|||||||
|
|
||||||
status_update(player_state);
|
status_update(player_state);
|
||||||
|
|
||||||
*retval = 0;
|
*retval = 1; // Value greater 0 will prevent execution of the bottom half function
|
||||||
return COMMAND_END;
|
return COMMAND_END;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2673,7 +2673,8 @@ playback_pause(void *arg, int *retval)
|
|||||||
DPRINTF(E_LOG, L_PLAYER, "Could not retrieve current position for pause\n");
|
DPRINTF(E_LOG, L_PLAYER, "Could not retrieve current position for pause\n");
|
||||||
|
|
||||||
playback_abort();
|
playback_abort();
|
||||||
return -1;
|
*retval = -1;
|
||||||
|
return COMMAND_END;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make sure playback is still running after source_check() */
|
/* Make sure playback is still running after source_check() */
|
||||||
|
Loading…
Reference in New Issue
Block a user