subparse: remove regex optimized flag explicitly

That way the other flags in jit_flags are not touched and
flags changes in future only need to be done in one place.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7126>
This commit is contained in:
Tim-Philipp Müller 2024-07-02 15:50:28 +01:00 committed by GStreamer Marge Bot
parent 084f6b3fbe
commit 6cc25bd630

View file

@ -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