From 551239c618923c6ecb16ed1f4583a50275bdd4d8 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 7 Oct 2021 19:28:41 +0900 Subject: [PATCH] validate: flow: Fix for line-ending mismatch issue on Windows Unlike POSIX system, Windows distinguishes "w" and "wb" and when a file is opened with text mode, OS will translate \n into \r\n. Part-of: --- .../gst-devtools/validate/gst/validate/flow/gstvalidateflow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-devtools/validate/gst/validate/flow/gstvalidateflow.c b/subprojects/gst-devtools/validate/gst/validate/flow/gstvalidateflow.c index 0662a315ec..873480a77b 100644 --- a/subprojects/gst-devtools/validate/gst/validate/flow/gstvalidateflow.c +++ b/subprojects/gst-devtools/validate/gst/validate/flow/gstvalidateflow.c @@ -423,7 +423,7 @@ validate_flow_setup_files (ValidateFlowOverride * flow, gint default_generate) g_free (directory_path); } - flow->output_file = fopen (flow->output_file_path, "w"); + flow->output_file = fopen (flow->output_file_path, "wb"); if (!flow->output_file) gst_validate_abort ("Could not open for writing: %s", flow->output_file_path);