]> git.sesse.net Git - mlt/blob - src/tests/dan.c
Merge ../mlt++
[mlt] / src / tests / dan.c
1
2 #include <framework/mlt.h>
3 #include <stdio.h>
4 #include <string.h>
5 #include <stdlib.h>
6
7
8
9 int main( int argc, char **argv )
10 {
11         mlt_properties p = mlt_properties_parse_yaml( argv[1] );
12         mlt_properties q = mlt_properties_new();
13         mlt_properties_set_data( q, "metadata", p, 0, ( mlt_destructor )mlt_properties_close, ( mlt_serialiser )mlt_properties_serialise_yaml ); 
14         printf( "%s", mlt_properties_get( q, "metadata" ) );
15         mlt_properties_close( q );
16         
17         mlt_repository repo = mlt_factory_init( NULL );
18         mlt_properties metadata = mlt_repository_metadata( repo, producer_type, "avformat" );
19         if ( metadata )
20         {
21                 char *s = mlt_properties_serialise_yaml( metadata );
22                 printf( "%s", s );
23                 free( s );
24         }
25         mlt_factory_close();
26         return 0;
27 }