diff --git a/subprojects/gst-plugins-base/gst/subparse/gstsubparseelement.c b/subprojects/gst-plugins-base/gst/subparse/gstsubparseelement.c index ab1bf50402..edd9f728a4 100644 --- a/subprojects/gst-plugins-base/gst/subparse/gstsubparseelement.c +++ b/subprojects/gst-plugins-base/gst/subparse/gstsubparseelement.c @@ -51,7 +51,7 @@ gst_sub_parse_data_format_autodetect_regex_once (GstSubParseRegex regtype) #ifdef HAVE_VALGRIND if (RUNNING_ON_VALGRIND) { /* jitted regex confuse valgrind */ - jit_flags = G_REGEX_RAW; + jit_flags &= ~G_REGEX_OPTIMIZE; } #endif