On Thu, Dec 16, 2010 at 12:11 AM, Jonathan Thomas <[email protected]> wrote: > Hi Dan! > Here is a patch that makes version information (i.e. 0.5.10) available in > the MLT library. I need this ability in OpenShot to make some features > conditional based on MLT's version. I moved 2 #define statements from the > mlt.h file into the a new mlt_version.h file. I saw no good place to add > these new methods, so I added the mlt_version.h / mlt_version.c files. They > are also imported into SWIG, and seem to work great from Python. I wasn't > sure the best name for these methods, so I just tried to imitate the naming > of other methods.
Thanks! I applied with some minor changes, the most notable of which is to rename BUILD -> REVISION with mlt_version_get_revision(). > Here are the new methods: >>> import mlt >>> mlt.mlt_version_get_int() > 1290 >>>> mlt.mlt_version_get_string() > '0.5.10' >>>> mlt.mlt_version_get_major() > 0 >>>> mlt.mlt_version_get_minor() > 5 >>>> mlt.mlt_version_get_build() > 10 > Please let me know what you think. I'll be happy to fix the patch if > something looks wrong. =) > Thanks, > -Jonathan > ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Mlt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mlt-devel
