Changeset 6bb37546483d236848dbe3dd11a601409e158e85
- 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
| rb939d65 |
r6bb3754 |
|
| 906 | 906 | VLC_AddIntf( 0, "netsync,none", VLC_FALSE, VLC_FALSE ); |
|---|
| 907 | 907 | } |
|---|
| | 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 |
|---|
| 908 | 925 | |
|---|
| 909 | 926 | /* |
|---|
| re70ef78 |
r6bb3754 |
|
| 692 | 692 | "This allows you to select a list of encoders that VLC will use in " \ |
|---|
| 693 | 693 | "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." ) |
|---|
| 694 | 699 | |
|---|
| 695 | 700 | /***************************************************************************** |
|---|
| … | … | |
| 1405 | 1410 | set_category( CAT_INPUT ); |
|---|
| 1406 | 1411 | set_subcategory( SUBCAT_INPUT_GENERAL ); |
|---|
| | 1412 | |
|---|
| | 1413 | add_bool( "prefer-system-codecs", VLC_FALSE, NULL, SYSTEM_CODEC_TEXT, |
|---|
| | 1414 | SYSTEM_CODEC_LONGTEXT, VLC_FALSE ); |
|---|
| 1407 | 1415 | |
|---|
| 1408 | 1416 | add_bool( "france", VLC_FALSE, NULL, N_("France"), FRANCE_LONGTEXT, VLC_TRUE ); |
|---|