]> git.sesse.net Git - mlt/blobdiff - src/modules/sdl/consumer_sdl.c
Fix memory leak converting image in RAM to GL texture.
[mlt] / src / modules / sdl / consumer_sdl.c
index 35015008c17b9151d1ff1ea0fa3b1ef94f35195a..033b69cebb96c67d3b71109d664274ef41f41317 100644 (file)
@@ -256,9 +256,7 @@ int consumer_start( mlt_consumer parent )
                        if ( mlt_properties_get_int( self->properties, "fullscreen" ) )
                        {
                                const SDL_VideoInfo *vi;
-                               pthread_mutex_lock( &mlt_sdl_mutex );
                                vi = SDL_GetVideoInfo();
-                               pthread_mutex_unlock( &mlt_sdl_mutex );
                                self->window_width = vi->current_w;
                                self->window_height = vi->current_h;
                                self->sdl_flags |= SDL_FULLSCREEN;