]> git.sesse.net Git - mlt/commitdiff
Portability modifications to scripts
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 14 Jun 2004 08:35:51 +0000 (08:35 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 14 Jun 2004 08:35:51 +0000 (08:35 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@329 d19143bc-622f-0410-bfdd-b5b2a6649095

16 files changed:
configure
src/modules/configure
src/modules/core/configure
src/modules/core/transition_composite.c
src/modules/dv/configure
src/modules/fezzik/configure
src/modules/gtk2/configure
src/modules/inigo/configure
src/modules/normalize/configure
src/modules/resample/configure
src/modules/sdl/configure
src/modules/sdl/consumer_sdl.c
src/modules/sox/configure
src/modules/vorbis/configure
src/modules/westley/configure
src/modules/xine/configure

index a5f03123b9b19127abafe605e53b966375d4dbb1..c238296e5651f30173500e4f01517e86c6d7fa80 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 function show_help
 {
@@ -120,10 +120,11 @@ do
        if [ -x src/$i/configure ]
        then
                [ $help = 0 ] && echo "Configuring `basename $i`:"
-               pushd src/$i > /dev/null
+               olddir=`pwd`
+               cd src/$i
                ./configure "$@"
                [ $? != 0 ] && exit 1
-               popd > /dev/null
+               cd $olddir
        fi
 done
 
index 6879efc4008aeaa87bbdc3c644eedd31e4c994e6..83b27c8fc16e74f6f03ff3d18894ae077629e1c0 100755 (executable)
@@ -1,10 +1,10 @@
-#!/bin/bash
+#!/bin/sh
 
 # Clean up disables if not in help mode
 [ "$help" != "1" ] && rm -f disable-* producers.dat filters.dat transitions.dat consumers.dat
 
 # Create the make.inc file
-echo SUBDIRS = `find -type d -maxdepth 1 | grep -v CVS | grep -v "^.$" | sed 's/\.\///'` > make.inc
+echo SUBDIRS = `find -type d -maxdepth 1 | grep -v CVS | grep -v "^.$" | sed 's/\.\///'` > make.inc
 
 # Iterate through arguments
 for i in "$@"
@@ -22,10 +22,11 @@ do
                if [ "$gpl" = "true" -o ! -f $i/gpl ]
                then
                        [ "$help" = "0" ] && echo "Configuring modules/$i:"
-                       pushd $i > /dev/null
+                       olddir2=`pwd`
+                       cd $i
                        ./configure "$@"
                        [ $? != 0 ] && exit 1
-                       popd > /dev/null
+                       cd $olddir2
                elif [ "$help" = "0" ]
                then
                        touch disable-$i
index 9373d83cf5e1160e96b0d532996b0f107b7a85a8..818fe2431cb87a3bdc0b7feea1671b0c2e47ea3f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index 88c12225c556cf8300cb997bf4572a09a2433550..0119380ee906d8fb9a6c4bf20e7394cca3d7ae09 100644 (file)
@@ -1033,7 +1033,8 @@ static int transition_get_image( mlt_frame a_frame, uint8_t **image, mlt_image_f
                        
                        int32_t luma_softness = mlt_properties_get_double( properties, "softness" ) * ( 1 << 16 );
                        uint16_t *luma_bitmap = get_luma( properties, width_b, height_b );
-                       composite_line_fn line_fn = mlt_properties_get_int( properties, "_MMX" ) ? composite_line_yuv_mmx : NULL;
+                       //composite_line_fn line_fn = mlt_properties_get_int( properties, "_MMX" ) ? composite_line_yuv_mmx : NULL;
+                       composite_line_fn line_fn = NULL;
 
                        for ( field = 0; field < ( progressive ? 1 : 2 ); field++ )
                        {
index 94532672a283d7b6d9265ad60964c2ef78bbf3b7..4825f8400e59c08b705a56592e5d8a2fe19523f5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index b7880adde7e2fe31a27290f26fea17f2c93963e7..c56f34c6e1795d5f47d93a934cce3e81690e441d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index c0d1688b343d6568eeb83c09b4645557291b9dc7..8979d129d8c4624d1a4cb6ded3e91cf26204472a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index 9b1808f3766254a849a55f85d4a0a47d77ca007b..c98c9300f8648804a94ea8dd3a5264c00d13d99a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index c89aba5ee4cb5b1083351133521985585b5380b3..d47e49452cf8c1c7110e1d1a3760128e8d56a6fb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index 7e0f23a5bd8f06cfd41360e470b6bc4f6f3a05e9..649195e96162ec718495d2937d181ec2ac6ec997 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index 1c40facacd0619423153f1a7fb0f5679b20a80f9..e7572ca5a4810d80bd0821edab897eaefa120a40 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index eee6cdd79088168c59a1b7d13e58c0791c10d108..660169be04de9d211eff3b3390bdfa465b1f2dfb 100644 (file)
@@ -131,7 +131,7 @@ mlt_consumer consumer_sdl_init( char *arg )
                        this->height = mlt_properties_get_int( this->properties, "height" );
                        
                        // Default window size
-                       this->window_width = ( float )this->height * this->display_aspect + 0.5;
+                       this->window_width = ( float )this->height * this->display_aspect;
                        this->window_height = this->height;
                }
                else
@@ -447,7 +447,7 @@ static int consumer_play_video( consumer_sdl this, mlt_frame frame )
                                        if ( this->rect.w > this->window_width )
                                        {
                                                this->rect.w = this->window_width;
-                                               this->rect.h = this_aspect / frame_aspect * this->window_height + 0.5;
+                                               this->rect.h = this_aspect / frame_aspect * this->window_height;
                                        }
                                }
                        }
@@ -462,11 +462,11 @@ static int consumer_play_video( consumer_sdl this, mlt_frame frame )
                        else if ( this->window_height * this->display_aspect > this->window_width )
                        {
                                this->rect.w = this->window_width;
-                               this->rect.h = this->window_width / this->display_aspect + 0.5;
+                               this->rect.h = this->window_width / this->display_aspect;
                        }
                        else
                        {
-                               this->rect.w = this->window_height * this->display_aspect + 0.5;
+                               this->rect.w = this->window_height * this->display_aspect;
                                this->rect.h = this->window_height;
                        }
                        
index 1a3f61ff7a768715b3708b9fa5b76fe277f83699..15aa439d13e07805af207ae7d0ea01d8fb5924b0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index 77f31557cd49c8df56dcb8852dbb04a43f3d700a..bf06011a0c7c2925e7aa801af8729bf5ab0e558d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index b9715700a574c5d7906a85738afc2c026db2d21c..ac2e83f485092ac55e20746c1dfbee9568cced88 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then
index 022c9cd697ac6cbf265f68241661b131d7002339..3c04324f47b829e797e919289126f0fbd40233bc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ "$help" != "1" ]
 then