summaryrefslogtreecommitdiff
path: root/tools/gst-discoverer.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gst-discoverer.c')
-rw-r--r--tools/gst-discoverer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/gst-discoverer.c b/tools/gst-discoverer.c
index c794324a6..106ec99c6 100644
--- a/tools/gst-discoverer.c
+++ b/tools/gst-discoverer.c
@@ -582,9 +582,12 @@ main (int argc, char **argv)
GError *err = NULL;
GstDiscoverer *dc;
gint timeout = 10;
+ gboolean use_cache = FALSE;
GOptionEntry options[] = {
{"async", 'a', 0, G_OPTION_ARG_NONE, &async,
"Run asynchronously", NULL},
+ {"use-cache", 'a', 0, G_OPTION_ARG_NONE, &use_cache,
+ "Use GstDiscovererInfo from our cache.", NULL},
{"timeout", 't', 0, G_OPTION_ARG_INT, &timeout,
"Specify timeout (in seconds, default 10)", "T"},
/* {"elem", 'e', 0, G_OPTION_ARG_NONE, &elem_seek, */
@@ -626,6 +629,8 @@ main (int argc, char **argv)
exit (1);
}
+ g_object_set (dc, "use-cache", use_cache, NULL);
+
if (!async) {
gint i;
for (i = 1; i < argc; i++)