X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Fproducer_ppm.c;h=b508654bc09af3b29979562020bf87b51704c684;hb=9390e8b584f3f717f0a326893c0e37cf187a0a51;hp=3d3f5839d847fceeccedc3c0406a0e7f71df4ccd;hpb=7da5daf600f8b97781d85a137c3aa81effb7e610;p=melted diff --git a/src/modules/core/producer_ppm.c b/src/modules/core/producer_ppm.c index 3d3f583..b508654 100644 --- a/src/modules/core/producer_ppm.c +++ b/src/modules/core/producer_ppm.c @@ -43,12 +43,20 @@ mlt_producer producer_ppm_init( void *command ) if ( this != NULL && mlt_producer_init( &this->parent, this ) == 0 ) { mlt_producer producer = &this->parent; + mlt_properties properties = mlt_producer_properties( producer ); producer->get_frame = producer_get_frame; producer->close = producer_close; if ( command != NULL ) + { + mlt_properties_set( properties, "resource", command ); this->command = strdup( command ); + } + else + { + mlt_properties_set( properties, "resource", "ppm test" ); + } return producer; }