Changeset 6bb37546483d236848dbe3dd11a601409e158e85

Show
Ignore:
Timestamp:
26/04/07 17:51:03 (2 years ago)
Author:
Damien Fouilleul <damienf@videolan.org>
git-committer:
Damien Fouilleul <damienf@videolan.org> 1177602663 +0000
git-parent:

[770c80230588fe07a87afd7c40dc72dfdb8561d5]

git-author:
Damien Fouilleul <damienf@videolan.org> 1177602663 +0000
Message:

- configuration: added "--prefer-system-codecs" option to force VLC to use codecs installed on system whwn a choice is available (currently only works on win32)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/libvlc-common.c

    rb939d65 r6bb3754  
    906906        VLC_AddIntf( 0, "netsync,none", VLC_FALSE, VLC_FALSE ); 
    907907    } 
     908 
     909#ifdef WIN32 
     910    if( config_GetInt( p_libvlc, "prefer-system-codecs") == 1 ) 
     911    { 
     912        char *psz_codecs = config_GetPsz( p_playlist, "codec" ); 
     913        if( psz_codecs ) 
     914        { 
     915            char *psz_morecodecs; 
     916            asprintf(&psz_morecodecs, "%s,dmo,quicktime", psz_codecs); 
     917            if( psz_morecodecs ) 
     918                config_PutPsz( p_libvlc, "codec", psz_morecodecs); 
     919        } 
     920        else 
     921            config_PutPsz( p_libvlc, "codec", "dmo,quicktime"); 
     922        free(psz_codecs); 
     923    } 
     924#endif 
    908925 
    909926    /* 
  • src/libvlc-module.c

    re70ef78 r6bb3754  
    692692    "This allows you to select a list of encoders that VLC will use in " \ 
    693693    "priority.") 
     694 
     695#define SYSTEM_CODEC_TEXT N_("Prefer system plugins over vlc") 
     696#define SYSTEM_CODEC_LONGTEXT N_( \ 
     697    "Indicates whether VLC will prefer native plugins installed " \ 
     698    "on system over VLC owns plugins whenever a choice is available." ) 
    694699 
    695700/***************************************************************************** 
     
    14051410    set_category( CAT_INPUT ); 
    14061411    set_subcategory( SUBCAT_INPUT_GENERAL ); 
     1412 
     1413    add_bool( "prefer-system-codecs", VLC_FALSE, NULL, SYSTEM_CODEC_TEXT, 
     1414                                SYSTEM_CODEC_LONGTEXT, VLC_FALSE ); 
    14071415 
    14081416    add_bool( "france", VLC_FALSE, NULL, N_("France"), FRANCE_LONGTEXT, VLC_TRUE );