Cleanup license declarations and remove dv1394d references.
[melted] / src / framework / mlt_repository.c
index 45a2e92..4241331 100644 (file)
@@ -3,19 +3,19 @@
  * Copyright (C) 2003-2004 Ushodaya Enterprises Limited
  * Author: Charles Yates <charles.yates@pandora.be>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
  *
- * This program is distributed in the hope that it will be useful,
+ * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include "mlt_repository.h"
@@ -85,12 +85,18 @@ static void *construct_instance( mlt_properties service_properties, const char *
                // Get the prefix and id of the shared object
                char *prefix = mlt_properties_get( object_properties, "prefix" );
                char *file = mlt_properties_get( object_properties, "id" );
+               int flags = RTLD_NOW;
+
+               // Very temporary hack to allow the quicktime plugins to work
+               // TODO: extend repository to allow this to be used on a case by case basis
+               if ( !strcmp( service, "kino" ) )
+                       flags |= RTLD_GLOBAL;
 
                // Construct the full file
                construct_full_file( full_file, prefix, file );
 
                // Open the shared object
-               object = dlopen( full_file, RTLD_NOW | RTLD_GLOBAL );
+               object = dlopen( full_file, flags );
                if ( object != NULL )
                {
                        // Set it on the properties