*/
static int consumer_start( mlt_consumer parent );
+static int consumer_is_stopped( mlt_consumer this );
/** This is what will be called by the factory - anything can be passed in
via the argument, but keep it simple.
// Allow thread to be started/stopped
this->start = consumer_start;
+ this->is_stopped = consumer_is_stopped;
mlt_properties_set( mlt_consumer_properties( this ), "resource", arg );
mlt_properties_get_value( properties, i ) != NULL &&
strcmp( name, "westley" ) != 0 )
{
-#if 0
- p = xmlNewChild( node, NULL, "prop", NULL );
+#if 1
+ p = xmlNewChild( node, NULL, "property", NULL );
+ xmlNewProp( p, "name", mlt_properties_get_name( properties, i ) );
+ xmlNodeSetContent( p, mlt_properties_get_value( properties, i ) );
#else
p = node;
-#endif
xmlNewProp( p, mlt_properties_get_name( properties, i ), mlt_properties_get_value( properties, i ) );
+#endif
}
}
}
xmlFreeDoc( doc );
mlt_consumer_stop( this );
- // Tell inigo, enough already!
- if ( inigo != NULL )
- mlt_properties_set_int( mlt_service_properties( inigo ), "done", 1 );
-
return 0;
}
+static int consumer_is_stopped( mlt_consumer this )
+{
+ return 1;
+}
+