From: Dan Dennedy Date: Sat, 23 Mar 2013 19:25:47 +0000 (-0700) Subject: Fix crash when using melt with qglsl on Windows. X-Git-Url: https://git.sesse.net/?p=mlt;a=commitdiff_plain;h=5fea25f248d32e1c24c769b019c22cdb8da4f5bc Fix crash when using melt with qglsl on Windows. --- diff --git a/src/modules/opengl/filter_movit_convert.cpp b/src/modules/opengl/filter_movit_convert.cpp index a9b7612b..e1d52e45 100644 --- a/src/modules/opengl/filter_movit_convert.cpp +++ b/src/modules/opengl/filter_movit_convert.cpp @@ -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 )