[MPlayer-dev-eng] Re: mplayer - runtime win32 codecs dir selection
Oded Shimon
ods15 at ods15.dyndns.org
Tue Nov 15 12:22:50 CET 2005
On Tue, Nov 15, 2005 at 10:31:36AM +0100, Attila Kinali wrote:
> Hey Oeded,
>
> Could you do me a favor and write a small patch for
> mplayer/mencoder that allows to select the directories
> where the codecs are stored at runtime ?
bleh, why are you e-mailing me for this...
- ods15
-------------- next part --------------
Index: cfg-common.h
===================================================================
RCS file: /cvsroot/mplayer/main/cfg-common.h,v
retrieving revision 1.148
diff -u -r1.148 cfg-common.h
--- cfg-common.h 5 Aug 2005 19:57:44 -0000 1.148
+++ cfg-common.h 15 Nov 2005 11:22:33 -0000
@@ -224,6 +224,10 @@
{"xvidopts", xvid_dec_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
#endif
{"codecs-file", &codecs_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
+#ifdef WIN32_LOADER
+ {"codecs-dir", &def_path, CONF_TYPE_STRING, 0, 0, 0, NULL},
+#endif
+
// ------------------------- subtitles options --------------------
#ifdef USE_SUB
@@ -309,6 +313,10 @@
/* defined in codec-cfg.c */
extern char * codecs_file;
+#ifdef WIN32_LOADER
+extern char * def_path;
+#endif
+
/* from dec_audio, currently used for ac3surround decoder only */
extern int audio_output_channels;
More information about the MPlayer-dev-eng
mailing list