]> git.sesse.net Git - mlt/blobdiff - mlt/src/modules/core/producer_ppm.c
miracle part 1
[mlt] / mlt / src / modules / core / producer_ppm.c
index 3d3f5839d847fceeccedc3c0406a0e7f71df4ccd..b508654bc09af3b29979562020bf87b51704c684 100644 (file)
@@ -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;
        }