]> git.sesse.net Git - mlt/commitdiff
added setenv_mc
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 2 Apr 2004 18:45:28 +0000 (18:45 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 2 Apr 2004 18:45:28 +0000 (18:45 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@266 d19143bc-622f-0410-bfdd-b5b2a6649095

setenv_mc [new file with mode: 0644]
src/modules/sdl/consumer_sdl.c

diff --git a/setenv_mc b/setenv_mc
new file mode 100644 (file)
index 0000000..5a26dde
--- /dev/null
+++ b/setenv_mc
@@ -0,0 +1,7 @@
+
+# Environment variable settings to allow execution without install
+
+export LD_LIBRARY_PATH=\
+`pwd`/../mpeg_sdk_release/bin:\
+`pwd`/../dvcpro_sdk_release/lib
+
index 41eea141ed2208dc5e9f56c5f469740213605637..bf7e3fd50e12cd561a408cb83405128c963ac3b0 100644 (file)
@@ -397,8 +397,6 @@ static int consumer_play_video( consumer_sdl this, mlt_frame frame )
                        changed = 1;
                }
 
-               if ( this->sdl_screen == NULL || changed )
-               {
                        SDL_Rect rect;
                        
                        // Determine frame's display aspect ratio
@@ -453,6 +451,8 @@ static int consumer_play_video( consumer_sdl this, mlt_frame frame )
                        rect.x = ( this->window_width - rect.w ) / 2;
                        rect.y = ( this->window_height - rect.h ) / 2;
                        
+               if ( this->sdl_screen == NULL || changed )
+               {
                        // Force an overlay recreation
                        if ( this->sdl_overlay != NULL )
                                SDL_FreeYUVOverlay( this->sdl_overlay );
@@ -469,7 +469,11 @@ static int consumer_play_video( consumer_sdl this, mlt_frame frame )
                                sdl_unlock_display();
                        }
                }
-                       
+               else
+               {
+                       SDL_SetClipRect( this->sdl_screen, &rect );
+               }
+
                if ( this->sdl_screen != NULL && this->sdl_overlay != NULL )
                {
                        this->buffer = this->sdl_overlay->pixels[ 0 ];