From 675677d25d11feb67ae5697395abf9deaf9469ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Fri, 16 Mar 2007 22:14:57 +0000 Subject: If REAL_CODEC_PATH is defined, use that as only default path, so that distributions can reduce the code used in their packages, and limit the path where to load the drivers by default. CVS patchset: 8684 CVS date: 2007/03/16 22:14:57 --- src/libreal/real_common.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libreal/real_common.c b/src/libreal/real_common.c index d2fccd28d..01d644cb8 100644 --- a/src/libreal/real_common.c +++ b/src/libreal/real_common.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: real_common.c,v 1.4 2007/03/16 21:37:58 dgp85 Exp $ + * $Id: real_common.c,v 1.5 2007/03/16 22:14:57 dgp85 Exp $ * * Common function for the thin layer to use Real binary-only codecs in xine */ @@ -68,6 +68,9 @@ void __ctype_b(void) { exit(0); } #endif void _x_real_codecs_init(xine_t *const xine) { +#ifdef REAL_CODEC_PATH + const char *const default_real_codecs_path = REAL_CODEC_PATH; +#else const char *default_real_codecs_path = ""; const char *real_codecs_path = NULL; struct stat s; @@ -92,6 +95,7 @@ void _x_real_codecs_init(xine_t *const xine) { #undef try_real_path #undef try_real_subpath +#endif real_codecs_path = xine->config->register_filename (xine->config, "decoder.external.real_codecs_path", -- cgit v1.2.3