X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Ftests%2Fcharlie.c;h=bcd4dae68008873c0658b41483ce6a35d20bf05b;hb=092636b85449e57fd33ffd4954a2de23c2a5f81c;hp=38c9ed036d80a00861ba2d9746ad96898238b7fa;hpb=7ad4d5aeea374365286fc76bc1fcbb36ff57409f;p=melted diff --git a/src/tests/charlie.c b/src/tests/charlie.c index 38c9ed0..bcd4dae 100644 --- a/src/tests/charlie.c +++ b/src/tests/charlie.c @@ -128,12 +128,13 @@ void transport( mlt_producer producer ) { mlt_properties properties = mlt_producer_properties( producer ); + term_init( ); fprintf( stderr, "Press 'q' to continue\n" ); - while( mlt_properties_get_int( properties, "done" ) == 0 ) { - char value = get_keypress( ); - transport_action( producer, &value ); + int value = term_read( ); + if ( value != -1 ) + transport_action( producer, ( char * )&value ); } } @@ -155,6 +156,8 @@ int main( int argc, char **argv ) // Construct the field field = mlt_field_init( ); + + // We need to track the number of registered filters mlt_properties properties = mlt_field_properties( field ); mlt_properties_set_int( properties, "registered", 0 );