jack: don't manually close on shutdown
Return false from mpd_jack_play(), let the MPD core close the device.
This commit is contained in:
parent
846f126259
commit
27c5b90dc3
@ -385,9 +385,7 @@ mpd_jack_play(void *data, const char *buff, size_t size)
|
|||||||
|
|
||||||
if (jd->shutdown) {
|
if (jd->shutdown) {
|
||||||
g_warning("Refusing to play, because there is no client thread.");
|
g_warning("Refusing to play, because there is no client thread.");
|
||||||
mpd_jack_client_free(jd);
|
return false;
|
||||||
audio_output_closed(jd->ao);
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(size % frame_size == 0);
|
assert(size % frame_size == 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user