summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-03-16 22:14:57 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-03-16 22:14:57 +0000
commit675677d25d11feb67ae5697395abf9deaf9469ad (patch)
treed7001d9a4bfb744262801101a4bb9000e2265c65
parent92e7af754617240646c35482f62a34603e6c50e2 (diff)
downloadxine-lib-675677d25d11feb67ae5697395abf9deaf9469ad.tar.gz
xine-lib-675677d25d11feb67ae5697395abf9deaf9469ad.tar.bz2
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
-rw-r--r--src/libreal/real_common.c6
1 files changed, 5 insertions, 1 deletions
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",