validate: flow: Fix for line-ending mismatch issue on Windows
authorSeungha Yang <seungha@centricular.com>
Thu, 7 Oct 2021 10:28:41 +0000 (19:28 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 13 Oct 2021 16:21:52 +0000 (16:21 +0000)
commit551239c618923c6ecb16ed1f4583a50275bdd4d8
tree35c5c43465e070f0a231ab5dc52af8ddb13f9f4a
parenta2aa2cda42f42be38a946548a599b95c708838bb
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1092>
subprojects/gst-devtools/validate/gst/validate/flow/gstvalidateflow.c