summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2010-08-25 20:54:39 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2010-08-25 22:15:08 +0530
commit203e3fed257f880c1b12763de8e9b9c5733a9444 (patch)
tree0b0dc0bdc1981fcf3e5a4a9698bfe4d3aa3dfad1 /tools
parentb94261f2531ed4e31aa135d49aa5480e8bdc0318 (diff)
downloadgupnp-dlna-203e3fed257f880c1b12763de8e9b9c5733a9444.tar.gz
tools: Relaxed mode support for gupnp-dlna-ls-profiles
This really has value only in verbose mode, when the actual profile restrictions are printed, but might be useful for getting debug information from users.
Diffstat (limited to 'tools')
-rw-r--r--tools/gupnp-dlna-ls-profiles.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/gupnp-dlna-ls-profiles.c b/tools/gupnp-dlna-ls-profiles.c
index c62edb0..7af361b 100644
--- a/tools/gupnp-dlna-ls-profiles.c
+++ b/tools/gupnp-dlna-ls-profiles.c
@@ -37,7 +37,7 @@
#include <gst/profile/gstprofile.h>
-static gboolean verbose = FALSE;
+static gboolean verbose = FALSE, relaxed = FALSE;
static void print_caps (GstCaps *caps)
{
@@ -92,6 +92,8 @@ main (int argc, char **argv)
GOptionEntry options[] = {
{"verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose,
"Print (very) verbose output", NULL},
+ {"relaxed", 'r', 0, G_OPTION_ARG_NONE, &relaxed,
+ "Read profiles in relaxed mode (only useful with -v)", NULL},
{NULL}
};
@@ -114,7 +116,7 @@ main (int argc, char **argv)
gst_init (&argc, &argv);
discover = gupnp_dlna_discoverer_new ((GstClockTime) GST_SECOND,
- FALSE,
+ relaxed,
TRUE);
profiles = (GList *) gupnp_dlna_discoverer_list_profiles (discover);