From 7057d7ce22de49b5c8ae50f625b8f1aa106c0a22 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Mon, 23 Oct 2023 20:12:29 +0300 Subject: [PATCH] validate: Remove G_REGEX_OPTIMIZE usage It's not needed and causes issues with valgrind (which doesn't support jit) Part-of: --- .../validate/gst/validate/gst-validate-report.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/subprojects/gst-devtools/validate/gst/validate/gst-validate-report.c b/subprojects/gst-devtools/validate/gst/validate/gst-validate-report.c index 6978c100c6..30ca2c33d1 100644 --- a/subprojects/gst-devtools/validate/gst/validate/gst-validate-report.c +++ b/subprojects/gst-devtools/validate/gst/validate/gst-validate-report.c @@ -729,9 +729,9 @@ gst_validate_report_init (void) } #ifndef GST_DISABLE_GST_DEBUG - if (!newline_regex) - newline_regex = - g_regex_new ("\n", G_REGEX_OPTIMIZE | G_REGEX_MULTILINE, 0, NULL); + if (!newline_regex) { + newline_regex = g_regex_new ("\n", G_REGEX_MULTILINE, 0, NULL); + } #endif } @@ -1234,8 +1234,7 @@ gst_validate_printf_valist (gpointer source, const gchar * format, va_list args) g_free (tmp); if (!newline_regex) - newline_regex = - g_regex_new ("\n", G_REGEX_OPTIMIZE | G_REGEX_MULTILINE, 0, NULL); + newline_regex = g_regex_new ("\n", G_REGEX_MULTILINE, 0, NULL); #ifndef GST_DISABLE_GST_DEBUG {