aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-08-27 22:27:30 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-08-27 22:27:30 +0000
commit3964e2714e9672fb4a45c8a16a96153ab7cae05b (patch)
tree907e694cfd92f92d4b8987137a34c053cededfed /modules
parent6726719d723f2f816827739aa59187848746f64f (diff)
merged in relevant changes from the v0-40 pd-extended release branch
svn path=/trunk/externals/pdp/; revision=10266
Diffstat (limited to 'modules')
-rw-r--r--modules/image_io/pdp_qt.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/image_io/pdp_qt.c b/modules/image_io/pdp_qt.c
index af149dc..fc81a4e 100644
--- a/modules/image_io/pdp_qt.c
+++ b/modules/image_io/pdp_qt.c
@@ -26,6 +26,7 @@
#include "pdp.h"
#include "pdp_llconv.h"
+#include "s_stuff.h" // need to get sys_libdir for libquicktime plugins
#define min(x,y) ((x<y)?(x):(y))
@@ -967,6 +968,19 @@ void pdp_qt_setup(void)
pdp_qt_setup_common(pdp_qt_tilde_class);
class_addmethod(pdp_qt_tilde_class, (t_method)pdp_qt_dsp, gensym("dsp"), 0);
+
+#ifdef __APPLE__
+ /* this is necessary for pdp_qt to find the embedded libquicktime plugins */
+ char buf[FILENAME_MAX];
+ char realpath_buf[FILENAME_MAX];
+ strncpy(buf, sys_libdir->s_name, FILENAME_MAX - 20);
+ strcat(buf, "/../lib/libquicktime");
+ if(realpath(buf, realpath_buf))
+ {
+ post("[pdp_qt]: setting LIBQUICKTIME_PLUGIN_DIR to:\n %s", realpath_buf);
+ setenv("LIBQUICKTIME_PLUGIN_DIR", realpath_buf, 0); // 0 means don't overwrite existing value
+ }
+#endif
}
#ifdef __cplusplus