Prevent a frame from being skipped when inigo is first paused.
authordezeroex <dezeroex@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sun, 7 Aug 2005 21:22:24 +0000 (21:22 +0000)
committerdezeroex <dezeroex@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sun, 7 Aug 2005 21:22:24 +0000 (21:22 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@795 d19143bc-622f-0410-bfdd-b5b2a6649095

src/inigo/inigo.c

index 5c8e9b8..cbc680e 100644 (file)
@@ -111,8 +111,10 @@ static void transport_action( mlt_producer producer, char *value )
                                if ( producer != NULL )
                                {
                                        mlt_position position = mlt_producer_position( producer );
-                                       mlt_producer_set_speed( producer, 0 );
-                                       mlt_producer_seek( producer, position + 1 );
+                                       if ( mlt_producer_get_speed( producer ) != 0 )
+                                               mlt_producer_set_speed( producer, 0 );
+                                       else
+                                               mlt_producer_seek( producer, position + 1 );
                                }
                                break;
                        case 'L':