case ' ':
toggle_paused (play);
break;
+ case 'q':
+ case 'Q':
+ g_main_loop_quit (play->loop);
+ break;
case '>':
if (!play_next (play)) {
g_print ("\nReached end of play list.\n");
play_prev (play);
break;
case 27: /* ESC */
+ if (key_input[1] == '\0') {
+ g_main_loop_quit (play->loop);
+ break;
+ }
+ /* fall through */
default:
if (strcmp (key_input, GST_PLAY_KB_ARROW_RIGHT) == 0) {
relative_seek (play, +0.08);
/* clean up */
play_free (play);
+ g_print ("\n");
return 0;
}