]> git.sesse.net Git - mlt/commitdiff
SDL Preview second checkin
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Thu, 21 Oct 2004 15:19:51 +0000 (15:19 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Thu, 21 Oct 2004 15:19:51 +0000 (15:19 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@487 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/sdl/consumer_sdl_still.c

index 3280bc197f3c7ceb0f157137b4359afd4c1064cd..d37255abafe958662e9fcb628440c6ab81e0a053 100644 (file)
@@ -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