lib\mlt
lib\frei0r-1
lib\ladspa
share\mlt
share\ffmpeg
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
+#ifdef WIN32
+#include <windows.h>
+/** the default subdirectory of the libdir for holding modules (plugins) */
+#define PREFIX_LIB "lib\\mlt"
+/** the default subdirectory of the install prefix for holding module (plugin) data */
+#define PREFIX_DATA "share\\mlt"
+#else
/** the default subdirectory of the libdir for holding modules (plugins) */
#define PREFIX_LIB LIBDIR "/mlt"
/** the default subdirectory of the install prefix for holding module (plugin) data */
#define PREFIX_DATA PREFIX "/share/mlt"
/** the default subdirectory of the libdir for holding modules (plugins) */
#define PREFIX_LIB LIBDIR "/mlt"
/** the default subdirectory of the install prefix for holding module (plugin) data */
#define PREFIX_DATA PREFIX "/share/mlt"
/** holds the full path to the modules directory - initialized and retained for the entire session */
static char *mlt_directory = NULL;
/** holds the full path to the modules directory - initialized and retained for the entire session */
static char *mlt_directory = NULL;
mlt_properties_set_or_default( global_properties, "MLT_CONSUMER", getenv( "MLT_CONSUMER" ), "sdl" );
mlt_properties_set( global_properties, "MLT_TEST_CARD", getenv( "MLT_TEST_CARD" ) );
mlt_properties_set_or_default( global_properties, "MLT_PROFILE", getenv( "MLT_PROFILE" ), "dv_pal" );
mlt_properties_set_or_default( global_properties, "MLT_CONSUMER", getenv( "MLT_CONSUMER" ), "sdl" );
mlt_properties_set( global_properties, "MLT_TEST_CARD", getenv( "MLT_TEST_CARD" ) );
mlt_properties_set_or_default( global_properties, "MLT_PROFILE", getenv( "MLT_PROFILE" ), "dv_pal" );
mlt_properties_set_or_default( global_properties, "MLT_DATA", getenv( "MLT_DATA" ), PREFIX_DATA );
}
mlt_properties_set_or_default( global_properties, "MLT_DATA", getenv( "MLT_DATA" ), PREFIX_DATA );
}
{
mlt_properties_close( event_object );
mlt_properties_close( global_properties );
{
mlt_properties_close( event_object );
mlt_properties_close( global_properties );
- mlt_repository_close( repository );
+ if ( repository )
+ mlt_repository_close( repository );
free( mlt_directory );
mlt_directory = NULL;
mlt_pool_close( );
free( mlt_directory );
mlt_directory = NULL;
mlt_pool_close( );
elif [ "$shared_ffmpeg" != "" ]
then
echo "PREFIX=$shared_ffmpeg" >> config.mak
elif [ "$shared_ffmpeg" != "" ]
then
echo "PREFIX=$shared_ffmpeg" >> config.mak
- echo "CFLAGS+=-DAVDATADIR=\\\"${shared_ffmpeg}/share/ffmpeg/\\\"" >> config.mak
+ case $targetos in
+ MINGW32_NT-*)
+ echo "CFLAGS+=-DAVDATADIR=\\\"share/ffmpeg/\\\"" >> config.mak
+ ;;
+ *)
+ echo "CFLAGS+=-DAVDATADIR=\\\"${shared_ffmpeg}/share/ffmpeg/\\\"" >> config.mak
+ ;;
+ esac
echo "CFLAGS+=$(pkg-config --cflags libavformat)" >> config.mak
echo "LDFLAGS+=$(pkg-config --libs-only-L libavformat)" >> config.mak
if [ "$devices" = "true" ]
echo "CFLAGS+=$(pkg-config --cflags libavformat)" >> config.mak
echo "LDFLAGS+=$(pkg-config --libs-only-L libavformat)" >> config.mak
if [ "$devices" = "true" ]
#include <stdlib.h>
#include <limits.h>
#include <stdlib.h>
#include <limits.h>
-#define FREI0R_PLUGIN_PATH "/usr/lib/frei0r-1:/usr/lib64/frei0r-1:/opt/local/lib/frei0r-1:/usr/local/lib/frei0r-1:$HOME/.frei0r-1/lib"
-#define GET_FREI0R_PATH (getenv("FREI0R_PATH") ? getenv("FREI0R_PATH") : getenv("MLT_FREI0R_PLUGIN_PATH") ? getenv("MLT_FREI0R_PLUGIN_PATH") : FREI0R_PLUGIN_PATH)
#ifdef WIN32
#define LIBSUF ".dll"
#ifdef WIN32
#define LIBSUF ".dll"
+#define FREI0R_PLUGIN_PATH "lib\\frei0r-1"
#else
#define LIBSUF ".so"
#else
#define LIBSUF ".so"
+#define FREI0R_PLUGIN_PATH "/usr/lib/frei0r-1:/usr/lib64/frei0r-1:/opt/local/lib/frei0r-1:/usr/local/lib/frei0r-1:$HOME/.frei0r-1/lib"
+#define GET_FREI0R_PATH (getenv("FREI0R_PATH") ? getenv("FREI0R_PATH") : getenv("MLT_FREI0R_PLUGIN_PATH") ? getenv("MLT_FREI0R_PLUGIN_PATH") : FREI0R_PLUGIN_PATH)
+
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 );
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 );
ladspa_path = g_strdup (getenv ("LADSPA_PATH"));
if (!ladspa_path)
ladspa_path = g_strdup (getenv ("LADSPA_PATH"));
if (!ladspa_path)
+#ifdef WIN32
+ ladspa_path = g_strdup ("lib\\ladspa");
+#else
ladspa_path = g_strdup ("/usr/local/lib/ladspa:/usr/lib/ladspa:/usr/lib64/ladspa");
ladspa_path = g_strdup ("/usr/local/lib/ladspa:/usr/lib/ladspa:/usr/lib64/ladspa");
dir = strtok (ladspa_path, ":");
do
dir = strtok (ladspa_path, ":");
do