Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Unbreak cdda-player -s.
  • Loading branch information
vext01 committed Sep 1, 2018
1 parent 0351271 commit 90f0752
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cdda-player.c
Expand Up @@ -1543,6 +1543,9 @@ main(int argc, char *argv[])
nostop=1;
if (EJECT_CD == cd_op) {
i_rc = cd_eject() ? 0 : 1;
} else if (STOP_PLAYING == cd_op) {
i_rc = cd_stop(p_cdio_global) ? 0 : 1;
goto done;
} else {
switch (cd_op) {
case PS_LIST_TRACKS:
Expand Down Expand Up @@ -1752,6 +1755,7 @@ main(int argc, char *argv[])
}
if (!nostop) cd_stop(p_cdio_global);
tty_restore();
done:
finish("bye", i_rc);

return 0; /* keep compiler happy */
Expand Down

0 comments on commit 90f0752

Please sign in to comment.