projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tools: Count argc after parsing GOption on Windows
[platform/upstream/gstreamer.git]
/
subprojects
/
gst-plugins-base
/
tools
/
gst-discoverer.c
diff --git
a/subprojects/gst-plugins-base/tools/gst-discoverer.c
b/subprojects/gst-plugins-base/tools/gst-discoverer.c
index
a50f5aa
..
b042be5
100644
(file)
--- a/
subprojects/gst-plugins-base/tools/gst-discoverer.c
+++ b/
subprojects/gst-plugins-base/tools/gst-discoverer.c
@@
-685,6
+685,10
@@
real_main (int argc, char **argv)
g_option_context_free (ctx);
+#ifdef G_OS_WIN32
+ argc = g_strv_length (argv);
+#endif
+
if (argc < 2) {
g_print ("usage: %s <uris>\n", argv[0]);
exit (-1);