From: lilo_booter Date: Fri, 2 Apr 2004 18:46:28 +0000 (+0000) Subject: added setenv_mc X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=788b48cb6c5163a522e0f51c80ad640cf7caed31;p=melted added setenv_mc git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@267 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/modules/sdl/consumer_sdl.c b/src/modules/sdl/consumer_sdl.c index bf7e3fd..41eea14 100644 --- a/src/modules/sdl/consumer_sdl.c +++ b/src/modules/sdl/consumer_sdl.c @@ -397,6 +397,8 @@ static int consumer_play_video( consumer_sdl this, mlt_frame frame ) changed = 1; } + if ( this->sdl_screen == NULL || changed ) + { SDL_Rect rect; // Determine frame's display aspect ratio @@ -451,8 +453,6 @@ static int consumer_play_video( consumer_sdl this, mlt_frame frame ) rect.x = ( this->window_width - rect.w ) / 2; rect.y = ( this->window_height - rect.h ) / 2; - if ( this->sdl_screen == NULL || changed ) - { // Force an overlay recreation if ( this->sdl_overlay != NULL ) SDL_FreeYUVOverlay( this->sdl_overlay ); @@ -469,11 +469,7 @@ static int consumer_play_video( consumer_sdl this, mlt_frame frame ) sdl_unlock_display(); } } - else - { - SDL_SetClipRect( this->sdl_screen, &rect ); - } - + if ( this->sdl_screen != NULL && this->sdl_overlay != NULL ) { this->buffer = this->sdl_overlay->pixels[ 0 ];