]> git.sesse.net Git - mlt/commitdiff
Fix crash when using melt with qglsl on Windows.
authorDan Dennedy <dan@dennedy.org>
Sat, 23 Mar 2013 19:25:47 +0000 (12:25 -0700)
committerDan Dennedy <dan@dennedy.org>
Sat, 23 Mar 2013 19:25:47 +0000 (12:25 -0700)
src/modules/opengl/filter_movit_convert.cpp

index a9b7612bb4c2e9de34fc0b440bfcd6caa40658a0..e1d52e45800e7ab71bca8560af10cb81ee05a904 100644 (file)
@@ -348,7 +348,12 @@ mlt_filter filter_movit_convert_init( mlt_profile profile, mlt_service_type type
 
        if ( glsl && ( filter = mlt_filter_new() ) )
        {
+#ifdef WIN32
+               // XXX avcolor_space is crashing on Windows in this context!
+               mlt_filter cpu_csc = NULL;
+#else
                mlt_filter cpu_csc = create_filter( profile, "avcolor_space" );
+#endif
                if ( !cpu_csc )
                        cpu_csc = create_filter( profile, "imageconvert" );
                if ( cpu_csc )