// open SDL window with video overlay, if possible
pthread_mutex_lock( &mlt_sdl_mutex );
- consumer_get_dimensions( &this->window_width, &this->window_height );
SDL_Surface *screen = SDL_SetVideoMode( this->window_width, this->window_height, this->bpp, this->sdl_flags );
+ if ( consumer_get_dimensions( &this->window_width, &this->window_height ) )
+ screen = SDL_SetVideoMode( this->window_width, this->window_height, this->bpp, this->sdl_flags );
pthread_mutex_unlock( &mlt_sdl_mutex );
if ( screen )
{
// open SDL window
pthread_mutex_lock( &mlt_sdl_mutex );
- consumer_get_dimensions( &this->window_width, &this->window_height );
SDL_Surface *screen = SDL_SetVideoMode( this->window_width, this->window_height, 0, this->sdl_flags );
+ if ( consumer_get_dimensions( &this->window_width, &this->window_height ) )
+ screen = SDL_SetVideoMode( this->window_width, this->window_height, 0, this->sdl_flags );
if ( screen )
{