]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_properties.c
Add mlt_properties_get_animation(); it might come in handy.
[mlt] / src / framework / mlt_properties.c
index c649137616a5e8305de0d83a373a531550c2ca84..0dfb4e605c1b5acff22b52528f8f16bd5168d571 100644 (file)
@@ -2400,3 +2400,17 @@ extern mlt_rect mlt_properties_anim_get_rect( mlt_properties self, const char *n
        mlt_rect rect = { DBL_MIN, DBL_MIN, DBL_MIN, DBL_MIN, DBL_MIN };
        return value == NULL ? rect : mlt_property_anim_get_rect( value, fps, list->locale, position, length );
 }
+
+/** Get the animation associated to the name.
+ *
+ * \public \memberof mlt_properties_s
+ * \param self a properties list
+ * \param name the property to get
+ * \return The animation object or NULL if the property has no animation
+ */
+
+mlt_animation mlt_properties_get_animation( mlt_properties self, const char *name )
+{
+       mlt_property value = mlt_properties_find( self, name );
+       return value == NULL ? NULL : mlt_property_get_animation( value );
+}