X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fsdl%2Fconsumer_sdl.c;fp=src%2Fmodules%2Fsdl%2Fconsumer_sdl.c;h=b652b9efae2f503d1628359d377e9c6b34e063c8;hb=3374a9bd3da60d13e5b361a809bcef172aa23920;hp=381006991dc42a2fdd0c4d6c61aa796f2096c72f;hpb=66ee48cf0b9448e670cfa19dfbbdc06193288181;p=melted diff --git a/src/modules/sdl/consumer_sdl.c b/src/modules/sdl/consumer_sdl.c index 3810069..b652b9e 100644 --- a/src/modules/sdl/consumer_sdl.c +++ b/src/modules/sdl/consumer_sdl.c @@ -194,14 +194,14 @@ int consumer_start( mlt_consumer parent ) } else { - if ( SDL_GetVideoSurface( ) != NULL ) - this->sdl_screen = SDL_GetVideoSurface( ); + this->sdl_screen = SDL_GetVideoSurface( ); } if ( !mlt_properties_get_int( MLT_CONSUMER_PROPERTIES( parent ), "audio_off" ) ) SDL_InitSubSystem( SDL_INIT_AUDIO ); - this->sdl_screen = SDL_SetVideoMode( this->window_width, this->window_height, 0, this->sdl_flags ); + if ( this->sdl_screen == NULL ) + this->sdl_screen = SDL_SetVideoMode( this->window_width, this->window_height, 0, this->sdl_flags ); pthread_create( &this->thread, NULL, consumer_thread, this ); }