From: lilo_booter Date: Thu, 21 Oct 2004 15:19:51 +0000 (+0000) Subject: SDL Preview second checkin X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e44d60cd847c677334722410b39846ff763e846d;p=mlt SDL Preview second checkin git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@487 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/modules/sdl/consumer_sdl_still.c b/src/modules/sdl/consumer_sdl_still.c index 3280bc19..d37255ab 100644 --- a/src/modules/sdl/consumer_sdl_still.c +++ b/src/modules/sdl/consumer_sdl_still.c @@ -462,6 +462,8 @@ static void *consumer_thread( void *arg ) else { mlt_properties_set_int( mlt_consumer_properties( consumer ), "changed", 2 ); + if ( SDL_GetVideoSurface( ) != NULL ) + consumer_get_dimensions( &this->window_width, &this->window_height ); } // Loop until told not to