From 7e38197caf04114db3bf0d3d9c0dd86a5757065a Mon Sep 17 00:00:00 2001 From: ddennedy Date: Sat, 13 Oct 2007 05:59:21 +0000 Subject: [PATCH] consumer_sdl.c: fix specifying window size on constructor arg git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1027 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/modules/sdl/consumer_sdl.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) 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" ); -- 1.7.4.4