]> git.sesse.net Git - mlt/commitdiff
Add Mlt::Profile.list().
authorDan Dennedy <dan@dennedy.org>
Sun, 10 Apr 2011 04:57:01 +0000 (21:57 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 10 Apr 2011 04:57:01 +0000 (21:57 -0700)
src/framework/mlt_profile.c
src/mlt++/MltProfile.cpp
src/mlt++/MltProfile.h
src/swig/mlt.i

index d1c0237b17c20914ae587fe686440f4940626b8c..04b04cc92744d0ee7de46e692eaa251c26f9322c 100644 (file)
@@ -338,7 +338,7 @@ mlt_profile mlt_profile_clone( mlt_profile profile )
 
 /** Get the list of profiles.
  *
- * The caller MUST free the returned properties object!
+ * The caller MUST close the returned properties object!
  * Each entry in the list is keyed on its name, and its value is another
  * properties object that contains the attributes of the profile.
  * \public \memberof mlt_profile_s
index c8418ed496521adca2716c9004c0bbf3d2c28253..47302b7aa788c3013ef4424d68b1f104927aec1f 100644 (file)
@@ -120,3 +120,8 @@ double Profile::dar() const
 {
        return mlt_profile_dar( instance );
 }
+
+Properties* Profile::list()
+{
+       return new Properties( mlt_profile_list() );
+}
index af77d471a05c80d48417f6f59514d3280fb73290..e51543dbdca91442e24cec1155c97db2708457df 100644 (file)
@@ -57,6 +57,7 @@ namespace Mlt
                        int display_aspect_num() const;
                        int display_aspect_den() const;
                        double dar() const;
+                       static Properties* list();
        };
 }
 
index cb57ad6c0f63af3dab58d0d113bac90a41b90e2a..f453f1e064f2d009a3245d24e24c0f93406dd00f 100644 (file)
@@ -60,6 +60,7 @@ namespace Mlt {
 %newobject Repository::transitions( );
 %newobject Repository::metadata( mlt_service_type, const char * );
 %newobject Repository::languages( );
+%newobject Profile::list();
 }
 
 /** Classes to wrap.