]> git.sesse.net Git - mlt/commitdiff
frei0r/factory.c: add more default locations for locating plugins including one for...
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sun, 1 Feb 2009 00:45:44 +0000 (00:45 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sun, 1 Feb 2009 00:45:44 +0000 (00:45 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1335 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/frei0r/factory.c

index 4cd84853afc773d65ce3e5824873a6a3f86e4e67..91ca3dacd6c5ad2a05902ddf67ca36915e206f73 100644 (file)
@@ -30,6 +30,8 @@
 #include <stdlib.h>
 #include <limits.h>
 
+#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,
                ":"
        );