From: Dan Dennedy Date: Sun, 29 May 2011 19:01:27 +0000 (-0700) Subject: Add service metadata for effectv module (WIP). X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b4caf2c76fd94f0654b98f3d2a36beca296234b4;p=mlt Add service metadata for effectv module (WIP). --- diff --git a/src/modules/effectv/Makefile b/src/modules/effectv/Makefile index 00157083..8887374d 100644 --- a/src/modules/effectv/Makefile +++ b/src/modules/effectv/Makefile @@ -29,6 +29,8 @@ clean: install: all install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt" + install -d "$(DESTDIR)$(datadir)/mlt/effectv" + install -m 644 *.yml "$(DESTDIR)$(datadir)/mlt/effectv" ifneq ($(wildcard .depend),) include .depend diff --git a/src/modules/effectv/factory.c b/src/modules/effectv/factory.c index e28d765a..0a9c33d1 100644 --- a/src/modules/effectv/factory.c +++ b/src/modules/effectv/factory.c @@ -19,11 +19,22 @@ #include #include +#include extern mlt_filter filter_burn_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/effectv/%s", mlt_environment( "MLT_DATA" ), (char*) data ); + return mlt_properties_parse_yaml( file ); +} + MLT_REPOSITORY { MLT_REGISTER( filter_type, "BurningTV", filter_burn_init ); MLT_REGISTER( filter_type, "burningtv", filter_burn_init ); + + MLT_REGISTER_METADATA( filter_type, "BurningTV", metadata, "filter_burningtv.yml" ); + MLT_REGISTER_METADATA( filter_type, "burningtv", metadata, "filter_burningtv.yml" ); } diff --git a/src/modules/effectv/filter_burningtv.yml b/src/modules/effectv/filter_burningtv.yml new file mode 100644 index 00000000..48035596 --- /dev/null +++ b/src/modules/effectv/filter_burningtv.yml @@ -0,0 +1,13 @@ +schema_version: 0.1 +type: filter +identifier: burningtv +title: BurningTV +version: 1 +copyright: FUKUCHI Kentaro, Stephane Fillod +creator: FUKUCHI Kentaro, Stephane Fillod +contributor: + - Jan Sorensen +license: GPLv2 +language: en +tags: + - Video