Changeset 917

Show
Ignore:
Timestamp:
11/11/07 12:08:23 (1 year ago)
Author:
glslang
Message:

+ bug fixes

Location:
trunk
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • trunk/installer/jahplayer.nsi

    r916 r917  
    183183  File "C:\Qt\3.3.8\lib\qt-mt338.dll" 
    184184  File /r "C:\Program Files\OpenLibraries\bin\*" 
     185  File "C:\Python25\DLLs\_socket.pyd" 
     186   
     187  SetOutPath $INSTDIR\JahPlayer\plugins 
     188  File /r "C:\Program Files\OpenLibraries\plugins\release\*" 
    185189   
    186190  SetOutPath $INSTDIR\JahPlayer\Lib 
  • trunk/jahplayer/bootstrap.py

    r909 r917  
    77import os.path 
    88 
    9 # This is required for the executable generated from py2exe 
    10 # to use the preinstalled openlibraries python bindings 
    11 if platform.system() == "Windows" or platform.system() == 'Microsoft': 
    12         #sys.path.append(os.path.join(os.getcwd(), "..", "openlibraries", "python")) 
    13         #sys.path.append(os.environ['PYTHONPATH']) 
    14         pass 
    15  
    169# Initialise the dynamic linking functionality - note that the ubuntu amd64 
    1710# distro lacks the dl module, hence fallback to the non-symbolic values 
    18 elif platform.system( ) == "Linux": 
     11if platform.system( ) == "Linux": 
    1912        try: 
    2013                import dl 
     
    2619import openpluginlib 
    2720 
    28 openpluginlib.init() 
     21if len( sys.argv ) > 1 and sys.argv[ 1 ] == "-release": 
     22        openpluginlib.init( os.path.join( os.path.dirname( sys.argv[ 0 ] ), "plugins" ), 0 ) 
     23else: 
     24        openpluginlib.init( ); 
  • trunk/jahplayer/jahplayer.cpp

    r913 r917  
    1414 
    1515        std::vector<char*> args; 
    16         args.push_back( "jahplayer" ); 
     16        args.push_back( argv[ 0 ] ); 
    1717        args.push_back( "jahplayer.py" ); 
     18#ifdef NDEBUG 
     19        args.push_back( "-release" ); 
     20#endif 
     21 
    1822        Py_Main( args.size( ), &args[ 0 ] ); 
    1923         
  • trunk/jahplayer/jahplayer_vc8.vcproj

    r915 r917  
    191191                        UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" 
    192192                        > 
     193                        <File 
     194                                RelativePath=".\resource1.h" 
     195                                > 
     196                        </File> 
    193197                </Filter> 
    194198                <Filter 
     
    197201                        UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" 
    198202                        > 
     203                        <File 
     204                                RelativePath=".\jah.ico" 
     205                                > 
     206                        </File> 
     207                        <File 
     208                                RelativePath=".\jahplayer.rc" 
     209                                > 
     210                        </File> 
    199211                </Filter> 
    200212        </Files> 
  • trunk/jahwidgets/src/qt3/python/python_vc8.vcproj

    r915 r917  
    7272                                LinkIncremental="2" 
    7373                                AdditionalLibraryDirectories="C:\Python25\libs;C:\Boost\lib;$(QTDIR)\lib;$(OPENLIBRARIES_LIB_PATH)" 
     74                                IgnoreDefaultLibraryNames="msvcrt.lib" 
    7475                                GenerateDebugInformation="true" 
    7576                                ProgramDatabaseFile="$(OutDir)/python.pdb" 
  • trunk/jahwidgets/src/qt3/widgets/player.cpp

    r911 r917  
    567567 
    568568                        // Determine if the image is supported by the gpu directly 
    569                         GLint internal_format; 
    570                         GLenum format, type; 
     569                        GLint internal_format = 0; 
     570                        GLenum format, type = GL_UNSIGNED_BYTE; 
    571571                        pl::pf_to_gl_format( image->pf( ), internal_format, format, type ); 
    572572                        ml::image_type_ptr new_im; 
     
    870870 
    871871                // Determine if the image is supported by the gpu directly 
    872                 GLint internal_format; 
    873                 GLenum format, type; 
     872                GLint internal_format = 0; 
     873                GLenum format, type = GL_UNSIGNED_BYTE; 
    874874                pl::pf_to_gl_format( image->pf( ), internal_format, format, type ); 
    875875                ml::image_type_ptr new_im;