]> git.sesse.net Git - mlt/blobdiff - src/modules/sdl/consumer_sdl_audio.c
Fix build on non-OSX due to missing parameter name.
[mlt] / src / modules / sdl / consumer_sdl_audio.c
index 207ec8431da5aa7b7fe0069a40eb83866e009bff..9550ea6a45814c303a52312f1dd94b03a8e5fefe 100644 (file)
@@ -103,6 +103,7 @@ mlt_consumer consumer_sdl_audio_init( mlt_profile profile, mlt_service_type type
 
                // Default scaler (for now we'll use nearest)
                mlt_properties_set( this->properties, "rescale", "nearest" );
+               mlt_properties_set( this->properties, "deinterlace_method", "onefield" );
 
                // Default buffer for low latency
                mlt_properties_set_int( this->properties, "buffer", 1 );
@@ -522,9 +523,12 @@ static void *consumer_thread( void *arg )
                                        consumer_play_video( this, frame );
                                        pthread_cond_wait( &this->refresh_cond, &this->refresh_mutex );
                                }
+                               mlt_frame_close( frame );
                                this->refresh_count --;
                                pthread_mutex_unlock( &this->refresh_mutex );
                        }
+                       else
+                               mlt_frame_close( frame );
 
                        // Optimisation to reduce latency
                        if ( speed == 1.0 )