]> git.sesse.net Git - mlt/commitdiff
Check for colorspace change on profile.
authorDan Dennedy <dan@dennedy.org>
Sun, 10 Oct 2010 05:58:45 +0000 (22:58 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 10 Oct 2010 05:58:45 +0000 (22:58 -0700)
src/modules/core/producer_loader.c

index f97d2fd67167b8503c08bff5db0b66686af9f2d6..35229d22e10ba8cff5c2d9c33421336d3b257974 100644 (file)
@@ -98,11 +98,13 @@ static mlt_producer create_producer( mlt_profile profile, char *file )
                }       
 
                // Check if the producer changed the profile - xml does this.
+               // The consumer producer does not handle frame rate differences.
                if ( result && backup_profile->is_explicit && (
-                        profile->width != backup_profile->width ||
-                        profile->height != backup_profile->height ||
-                        profile->sample_aspect_num != backup_profile->sample_aspect_num ||
-                        profile->sample_aspect_den != backup_profile->sample_aspect_den ) )
+                    profile->width != backup_profile->width ||
+                    profile->height != backup_profile->height ||
+                    profile->sample_aspect_num != backup_profile->sample_aspect_num ||
+                    profile->sample_aspect_den != backup_profile->sample_aspect_den ||
+                    profile->colorspace != backup_profile->colorspace ) )
                {
                        // Restore the original profile attributes.
                        profile->display_aspect_den = backup_profile->display_aspect_den;