in point fix, low latency sdl, minor fixes
[melted] / src / modules / sdl / consumer_sdl.c
index d3d0b7a..1d1e959 100644 (file)
@@ -103,7 +103,7 @@ mlt_consumer consumer_sdl_init( char *arg )
                mlt_properties_set( this->properties, "rescale", "nearest" );
 
                // Default buffer for low latency
-               mlt_properties_set_int( this->properties, "buffer", 8 );
+               mlt_properties_set_int( this->properties, "buffer", 2 );
 
                // Default progressive true
                mlt_properties_set_int( this->properties, "progressive", 0 );
@@ -347,6 +347,9 @@ static int consumer_play_video( consumer_sdl this, mlt_frame frame )
                                                this->window_height = event.resize.h;
                                                changed = 1;
                                                break;
+                                       case SDL_QUIT:
+                                               this->running = 0;
+                                               break;
                                        case SDL_KEYDOWN:
                                                {
                                                        mlt_producer producer = mlt_properties_get_data( properties, "transport_producer", NULL );