X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fsdl%2Fconsumer_sdl.c;h=9d663fd325d7ef88a12b6ca1b37bb3297dcc29ac;hb=7e38197caf04114db3bf0d3d9c0dd86a5757065a;hp=70e65d9cf3ca13204ce25c69ac68116b0e6c58fa;hpb=732718dfec355594c5421455262eacd6fc88bbba;p=melted diff --git a/src/modules/sdl/consumer_sdl.c b/src/modules/sdl/consumer_sdl.c index 70e65d9..9d663fd 100644 --- a/src/modules/sdl/consumer_sdl.c +++ b/src/modules/sdl/consumer_sdl.c @@ -178,8 +178,10 @@ int consumer_start( mlt_consumer parent ) this->running = 1; this->joined = 0; - this->width = mlt_properties_get_int( this->properties, "width" ); - this->height = mlt_properties_get_int( this->properties, "height" ); + if ( mlt_properties_get_int( this->properties, "width" ) > 0 ) + this->width = mlt_properties_get_int( this->properties, "width" ); + if ( mlt_properties_get_int( this->properties, "height" ) > 0 ) + this->height = mlt_properties_get_int( this->properties, "height" ); this->bpp = mlt_properties_get_int( this->properties, "bpp" );