Constness changes
[melted] / mlt++ / src / MltProducer.cpp
index e98e513..4302243 100644 (file)
@@ -29,7 +29,7 @@ Producer::Producer( ) :
 {
 }
 
-Producer::Producer( Profile& profile, char *id, char *service ) :
+Producer::Producer( Profile& profile, const char *id, const char *service ) :
        instance( NULL ),
        parent_( NULL )
 {
@@ -60,6 +60,7 @@ Producer::Producer( mlt_producer producer ) :
 }
 
 Producer::Producer( Producer &producer ) :
+       Mlt::Service( producer ),
        instance( producer.get_producer( ) ),
        parent_( NULL )
 {
@@ -190,12 +191,3 @@ void Producer::optimise( )
 {
        mlt_producer_optimise( get_producer( ) );
 }
-
-Frame* Producer::get_frame( int index )
-{
-       mlt_frame f = NULL;
-       int result = get_producer()->get_frame( get_producer(), &f, index );
-       if ( f )
-               return new Frame( f );
-       return NULL;
-}