SDL Preview second checkin
[melted] / src / modules / sdl / consumer_sdl_still.c
index 3280bc1..d37255a 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