From d1f4f70e50e56ec1b34c7778e65e90db3bcdfc07 Mon Sep 17 00:00:00 2001 From: ddennedy Date: Sun, 1 Feb 2009 00:45:44 +0000 Subject: [PATCH] frei0r/factory.c: add more default locations for locating plugins including one for MacPorts git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1335 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/modules/frei0r/factory.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/modules/frei0r/factory.c b/src/modules/frei0r/factory.c index 4cd8485..91ca3da 100644 --- a/src/modules/frei0r/factory.c +++ b/src/modules/frei0r/factory.c @@ -30,6 +30,8 @@ #include #include +#define FREI0R_PLUGIN_PATH "/usr/lib/frei0r-1:/usr/local/lib/frei0r-1:/opt/local/lib/frei0r-1" + extern mlt_filter filter_frei0r_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ); extern mlt_frame filter_process( mlt_filter this, mlt_frame frame ); extern void filter_close( mlt_filter this ); @@ -216,8 +218,8 @@ static void * create_frei0r_item ( mlt_profile profile, mlt_service_type type, c mlt_tokeniser tokeniser = mlt_tokeniser_init ( ); int dircount=mlt_tokeniser_parse_new ( - tokeniser , - getenv("MLT_FREI0R_PLUGIN_PATH") ? getenv("MLT_FREI0R_PLUGIN_PATH") : "/usr/lib/frei0r-1" , + tokeniser, + getenv("MLT_FREI0R_PLUGIN_PATH") ? getenv("MLT_FREI0R_PLUGIN_PATH") : FREI0R_PLUGIN_PATH, ":" ); void* ret=NULL; @@ -252,7 +254,7 @@ MLT_REPOSITORY mlt_tokeniser tokeniser = mlt_tokeniser_init ( ); int dircount=mlt_tokeniser_parse_new ( tokeniser , - getenv("MLT_FREI0R_PLUGIN_PATH") ? getenv("MLT_FREI0R_PLUGIN_PATH") : "/usr/lib/frei0r-1" , + getenv("MLT_FREI0R_PLUGIN_PATH") ? getenv("MLT_FREI0R_PLUGIN_PATH") : FREI0R_PLUGIN_PATH, ":" ); -- 1.7.4.4