output_thread: leave the pause loop on failure
When the pause() method fails, leave the pause loop, because calling pause() on a closed device is not allowed.
This commit is contained in:
parent
bd8ecba449
commit
a96993f655
@ -86,6 +86,7 @@ static void ao_pause(struct audio_output *ao)
|
|||||||
ao->plugin->close(ao->data);
|
ao->plugin->close(ao->data);
|
||||||
pcm_convert_deinit(&ao->convert_state);
|
pcm_convert_deinit(&ao->convert_state);
|
||||||
ao->open = false;
|
ao->open = false;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} while (ao->command == AO_COMMAND_NONE);
|
} while (ao->command == AO_COMMAND_NONE);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user