git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@24
d19143bc-622f-0410-bfdd-
b5b2a6649095
{
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 );
}
}
{
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 );
}
}