mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-23 07:26:32 +01:00
Merge 2185bc70a9
into 02b0c3af56
This commit is contained in:
commit
ff8e339505
1 changed files with 2 additions and 2 deletions
|
@ -1618,6 +1618,8 @@ static void do_pause(void)
|
||||||
error(_("pause push error: %s"), snd_strerror(err));
|
error(_("pause push error: %s"), snd_strerror(err));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
fprintf(stderr, _("\r=== PAUSE === "));
|
||||||
|
fflush(stderr);
|
||||||
while (1) {
|
while (1) {
|
||||||
b = wait_for_input();
|
b = wait_for_input();
|
||||||
if (b == ' ' || b == '\r') {
|
if (b == ' ' || b == '\r') {
|
||||||
|
@ -1642,8 +1644,6 @@ static void check_stdin(void)
|
||||||
while (read(fileno(stdin), &b, 1) == 1) {
|
while (read(fileno(stdin), &b, 1) == 1) {
|
||||||
if (b == ' ' || b == '\r') {
|
if (b == ' ' || b == '\r') {
|
||||||
while (read(fileno(stdin), &b, 1) == 1);
|
while (read(fileno(stdin), &b, 1) == 1);
|
||||||
fprintf(stderr, _("\r=== PAUSE === "));
|
|
||||||
fflush(stderr);
|
|
||||||
do_pause();
|
do_pause();
|
||||||
fprintf(stderr, " \r");
|
fprintf(stderr, " \r");
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
|
|
Loading…
Reference in a new issue