]> git.sesse.net Git - mlt/commitdiff
quit fix for SDL
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 26 Dec 2003 18:29:41 +0000 (18:29 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 26 Dec 2003 18:29:41 +0000 (18:29 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@24 d19143bc-622f-0410-bfdd-b5b2a6649095

mlt/src/tests/charlie.c
src/tests/charlie.c

index 38c9ed036d80a00861ba2d9746ad96898238b7fa..d6dc995ccfe334ff169a6ce2b6c37ae37ba3153d 100644 (file)
@@ -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 );
        }
 }
 
index 38c9ed036d80a00861ba2d9746ad96898238b7fa..d6dc995ccfe334ff169a6ce2b6c37ae37ba3153d 100644 (file)
@@ -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 );
        }
 }