diff options
author | Bradley Sepos <[email protected]> | 2017-06-17 15:29:43 -0400 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2017-06-17 15:39:03 -0400 |
commit | a54508601b429938212fc9bfd0db7d5d68ac5e01 (patch) | |
tree | d452e0d9ad3133ccc6b0eca92e7ae624419118df /test | |
parent | 8b01d5247900ba2c4ad159df14f8caf9d650d5a4 (diff) |
cli: Remove legacy BeOS code.
*sniff*
Diffstat (limited to 'test')
-rw-r--r-- | test/test.c | 57 |
1 files changed, 1 insertions, 56 deletions
diff --git a/test/test.c b/test/test.c index 3bc669972..4e35cd8c3 100644 --- a/test/test.c +++ b/test/test.c @@ -309,63 +309,8 @@ void EventLoop(hb_handle_t *h, hb_dict_t *preset_dict) break; } } - hb_snooze( 200 ); -#elif !defined(SYS_BEOS) - fd_set fds; - struct timeval tv; - int ret; - char buf[257]; - - tv.tv_sec = 0; - tv.tv_usec = 100000; - - FD_ZERO( &fds ); - FD_SET( STDIN_FILENO, &fds ); - ret = select( STDIN_FILENO + 1, &fds, NULL, NULL, &tv ); - - if( ret > 0 ) - { - int size = 0; - - while( size < 256 && - read( STDIN_FILENO, &buf[size], 1 ) > 0 ) - { - if( buf[size] == '\n' ) - { - break; - } - size++; - } - - if( size >= 256 || buf[size] == '\n' ) - { - switch( buf[0] ) - { - case 'q': - fprintf( stdout, "\nEncoding Quit by user command\n" ); - done_error = HB_ERROR_CANCELED; - die = 1; - break; - case 'p': - fprintf(stdout, - "\nEncoding Paused by user command, 'r' to resume\n"); - hb_pause(h); - hb_system_sleep_allow(h); - break; - case 'r': - hb_system_sleep_prevent(h); - hb_resume(h); - break; - case 'h': - ShowCommands(); - break; - } - } - } - hb_snooze( 200 ); -#else - hb_snooze( 200 ); #endif + hb_snooze( 200 ); HandleEvents( h, preset_dict ); } |