tools: Count argc after parsing GOption on Windows
authorSeungha Yang <seungha@centricular.com>
Thu, 30 Mar 2023 19:40:58 +0000 (04:40 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 1 Apr 2023 00:14:57 +0000 (00:14 +0000)
commitcb08a6d8dc3cf153f62cc7097945fac1efae7338
tree194926c0f11286fd4c3459207511e163f0918699
parentb2feff23bc3be757e6ad046387867fc35a787d12
tools: Count argc after parsing GOption on Windows

Existing codes rely on modified argc value by g_option_context_parse()
but g_option_context_parse_strv() is used in case of Windows.
Count arguments after the option parsing manually.
Fixing command "gst-inspect-1.0.exe -b"

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4322>
subprojects/gst-plugins-bad/tools/gst-transcoder.c
subprojects/gst-plugins-base/tools/gst-device-monitor.c
subprojects/gst-plugins-base/tools/gst-discoverer.c
subprojects/gst-plugins-base/tools/gst-play.c
subprojects/gstreamer/tools/gst-inspect.c
subprojects/gstreamer/tools/gst-launch.c
subprojects/gstreamer/tools/gst-stats.c
subprojects/gstreamer/tools/gst-typefind.c