]> git.sesse.net Git - mlt/commitdiff
in/out specification on .inigo serialisations
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Thu, 15 Jan 2004 11:27:35 +0000 (11:27 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Thu, 15 Jan 2004 11:27:35 +0000 (11:27 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@80 d19143bc-622f-0410-bfdd-b5b2a6649095

mlt/src/framework/mlt_producer.c
mlt/src/framework/mlt_tractor.c
src/framework/mlt_producer.c
src/framework/mlt_tractor.c

index c8a3e69e2699112f5167797d54d69e0896e5acbd..c3ba4e6ba1c87410676cb8996ce987466541e6ec 100644 (file)
@@ -115,6 +115,10 @@ int mlt_producer_seek( mlt_producer this, mlt_position position )
 
 mlt_position mlt_producer_position( mlt_producer this )
 {
+       //char *resource = mlt_properties_get( mlt_producer_properties( this ), "resource" );
+       //mlt_position frame = mlt_properties_get_position( mlt_producer_properties( this ), "frame" );
+       //mlt_position position = mlt_properties_get_position( mlt_producer_properties( this ), "position" );
+       //fprintf( stderr, "%s: %lld %lld\n", resource, frame, position );
        return mlt_properties_get_position( mlt_producer_properties( this ), "position" );
 }
 
@@ -123,10 +127,6 @@ mlt_position mlt_producer_position( mlt_producer this )
 
 mlt_position mlt_producer_frame( mlt_producer this )
 {
-       //char *resource = mlt_properties_get( mlt_producer_properties( this ), "resource" );
-       //mlt_position frame = mlt_properties_get_position( mlt_producer_properties( this ), "frame" );
-       //mlt_position position = mlt_properties_get_position( mlt_producer_properties( this ), "position" );
-       //fprintf( stderr, "%s: %lld %lld\n", resource, frame, position );
        return mlt_properties_get_position( mlt_producer_properties( this ), "frame" );
 }
 
index 72f9e724723b01779e26da30c633eab1d7b96154..147c45d43b7ab5bfbff4ca0d60fe449265ba4fe2 100644 (file)
@@ -135,7 +135,7 @@ static int producer_get_frame( mlt_producer parent, mlt_frame_ptr frame, int tra
                        mlt_producer target = mlt_multitrack_producer( multitrack );
                        mlt_producer_seek( target, mlt_producer_frame( parent ) );
                        mlt_producer_set_speed( target, mlt_producer_get_speed( parent ) );
-                       mlt_producer_set_in_and_out( parent, mlt_producer_get_in( target ), mlt_producer_get_out( target ) );
+                       //mlt_producer_set_in_and_out( parent, mlt_producer_get_in( target ), mlt_producer_get_out( target ) );
                }
                else
                {
@@ -158,7 +158,7 @@ static int producer_get_frame( mlt_producer parent, mlt_frame_ptr frame, int tra
                                *frame = temp;
                        }
                        else if ( ( !mlt_frame_is_test_card( temp ) || !mlt_frame_is_test_audio( temp ) ) && looking &&
-                                           mlt_producer_position( parent ) == mlt_properties_get_position( mlt_frame_properties( temp ), "position" ) )
+                                           mlt_producer_frame( parent ) == mlt_frame_get_position( temp ) )
                        {
                                *frame = temp;
                                looking = 0;
index c8a3e69e2699112f5167797d54d69e0896e5acbd..c3ba4e6ba1c87410676cb8996ce987466541e6ec 100644 (file)
@@ -115,6 +115,10 @@ int mlt_producer_seek( mlt_producer this, mlt_position position )
 
 mlt_position mlt_producer_position( mlt_producer this )
 {
+       //char *resource = mlt_properties_get( mlt_producer_properties( this ), "resource" );
+       //mlt_position frame = mlt_properties_get_position( mlt_producer_properties( this ), "frame" );
+       //mlt_position position = mlt_properties_get_position( mlt_producer_properties( this ), "position" );
+       //fprintf( stderr, "%s: %lld %lld\n", resource, frame, position );
        return mlt_properties_get_position( mlt_producer_properties( this ), "position" );
 }
 
@@ -123,10 +127,6 @@ mlt_position mlt_producer_position( mlt_producer this )
 
 mlt_position mlt_producer_frame( mlt_producer this )
 {
-       //char *resource = mlt_properties_get( mlt_producer_properties( this ), "resource" );
-       //mlt_position frame = mlt_properties_get_position( mlt_producer_properties( this ), "frame" );
-       //mlt_position position = mlt_properties_get_position( mlt_producer_properties( this ), "position" );
-       //fprintf( stderr, "%s: %lld %lld\n", resource, frame, position );
        return mlt_properties_get_position( mlt_producer_properties( this ), "frame" );
 }
 
index 72f9e724723b01779e26da30c633eab1d7b96154..147c45d43b7ab5bfbff4ca0d60fe449265ba4fe2 100644 (file)
@@ -135,7 +135,7 @@ static int producer_get_frame( mlt_producer parent, mlt_frame_ptr frame, int tra
                        mlt_producer target = mlt_multitrack_producer( multitrack );
                        mlt_producer_seek( target, mlt_producer_frame( parent ) );
                        mlt_producer_set_speed( target, mlt_producer_get_speed( parent ) );
-                       mlt_producer_set_in_and_out( parent, mlt_producer_get_in( target ), mlt_producer_get_out( target ) );
+                       //mlt_producer_set_in_and_out( parent, mlt_producer_get_in( target ), mlt_producer_get_out( target ) );
                }
                else
                {
@@ -158,7 +158,7 @@ static int producer_get_frame( mlt_producer parent, mlt_frame_ptr frame, int tra
                                *frame = temp;
                        }
                        else if ( ( !mlt_frame_is_test_card( temp ) || !mlt_frame_is_test_audio( temp ) ) && looking &&
-                                           mlt_producer_position( parent ) == mlt_properties_get_position( mlt_frame_properties( temp ), "position" ) )
+                                           mlt_producer_frame( parent ) == mlt_frame_get_position( temp ) )
                        {
                                *frame = temp;
                                looking = 0;