]> git.sesse.net Git - mlt/commitdiff
Add Properties constructor from opaque pointer.
authorDan Dennedy <dan@dennedy.org>
Sun, 20 Sep 2009 06:49:28 +0000 (23:49 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 20 Sep 2009 06:49:28 +0000 (23:49 -0700)
src/mlt++/MltProperties.cpp
src/mlt++/MltProperties.h

index e52984f60965a88a236029869d94ac7b2597920b..58b8cea7dad64d0e8929abc6008bdb2b39efc183 100644 (file)
@@ -45,6 +45,12 @@ Properties::Properties( mlt_properties properties ) :
        inc_ref( );
 }
 
+Properties::Properties( void *properties ) :
+       instance( mlt_properties( properties ) )
+{
+       inc_ref( );
+}
+
 Properties::Properties( const char *file ) :
        instance( NULL )
 {
index 4db86017669e207a3af4f6ceb05ac083167baebe..64a31e38da29653563c1d3e6202bf9b36da85ef9 100644 (file)
@@ -42,6 +42,7 @@ namespace Mlt
                        Properties( bool dummy );
                        Properties( Properties &properties );
                        Properties( mlt_properties properties );
+                       Properties( void *properties );
                        Properties( const char *file );
                        virtual ~Properties( );
                        virtual mlt_properties get_properties( );