]> git.sesse.net Git - mlt/commitdiff
fix melt parsing URL with query string
authorDan Dennedy <dan@dennedy.org>
Sat, 14 Jan 2012 22:08:48 +0000 (14:08 -0800)
committerDan Dennedy <dan@dennedy.org>
Sat, 14 Jan 2012 22:08:48 +0000 (14:08 -0800)
when not followed by -consumer, -profile, or -serialise

src/modules/core/producer_melt.c

index 1a5789fd5477da2029bb60c90079ad3648803f2f..3c8368cbd06fb0f9f90dbbc3dd0abb2ab8860dd1 100644 (file)
@@ -439,7 +439,8 @@ mlt_producer producer_melt_init( mlt_profile profile, mlt_service_type type, con
                                backtrack = 1;
                        }
 
-                       while ( argv[ i ] != NULL && strchr( argv[ i ], '=' ) )
+                       while ( argv[ i ] != NULL && strchr( argv[ i ], '=' ) &&
+                               ( !strchr( argv[ i ], ':' ) || strchr( argv[ i ], ':' ) > strchr( argv[ i ], '=' ) ) )
                        {
                                i ++;
                                backtrack = 1;