install: all
install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
+ install -d "$(DESTDIR)$(datadir)/mlt/vorbis"
+ install -m 644 *.yml "$(DESTDIR)$(datadir)/mlt/vorbis"
ifneq ($(wildcard .depend),)
include .depend
*/
#include <string.h>
+#include <limits.h>
#include <framework/mlt.h>
extern mlt_producer producer_vorbis_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
+static mlt_properties metadata( mlt_service_type type, const char *id, void *data )
+{
+ char file[ PATH_MAX ];
+ snprintf( file, PATH_MAX, "%s/vorbis/%s", mlt_environment( "MLT_DATA" ), (char*) data );
+ return mlt_properties_parse_yaml( file );
+}
+
MLT_REPOSITORY
{
MLT_REGISTER( producer_type, "vorbis", producer_vorbis_init );
+ MLT_REGISTER_METADATA( producer_type, "vorbis", metadata, "producer_vorbis.yml" );
}