X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_properties.c;h=9fd2025ed78a25baaeead3c2958de01c12070163;hb=206ff6b48bd54bee6d1ac679c352296f374c7590;hp=18452dde08308623d114edab5fd1515e660ffc97;hpb=d85453a62ee1467a3e1af0ddc10ea307dedd0ee0;p=melted diff --git a/src/framework/mlt_properties.c b/src/framework/mlt_properties.c index 18452dd..9fd2025 100644 --- a/src/framework/mlt_properties.c +++ b/src/framework/mlt_properties.c @@ -593,6 +593,37 @@ int mlt_properties_set_int( mlt_properties this, const char *name, int value ) /** Get a value associated to the name. */ +int64_t mlt_properties_get_int64( mlt_properties this, const char *name ) +{ + mlt_property value = mlt_properties_find( this, name ); + return value == NULL ? 0 : mlt_property_get_int64( value ); +} + +/** Set a value associated to the name. +*/ + +int mlt_properties_set_int64( mlt_properties this, const char *name, int64_t value ) +{ + int error = 1; + + // Fetch the property to work with + mlt_property property = mlt_properties_fetch( this, name ); + + // Set it if not NULL + if ( property != NULL ) + { + error = mlt_property_set_int64( property, value ); + mlt_properties_do_mirror( this, name ); + } + + mlt_events_fire( this, "property-changed", name, NULL ); + + return error; +} + +/** Get a value associated to the name. +*/ + double mlt_properties_get_double( mlt_properties this, const char *name ) { mlt_property value = mlt_properties_find( this, name );