From f09dd66cf6cf2affcb616db103119c7c512d9f96 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Wed, 17 Sep 2014 09:41:46 +0200 Subject: [PATCH] stats: don't warn on ".class" log lines --- tools/gst-stats.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/gst-stats.c b/tools/gst-stats.c index b2a71f8..4a49df5 100644 --- a/tools/gst-stats.c +++ b/tools/gst-stats.c @@ -786,8 +786,6 @@ collect_stats (const gchar * filename) if ((s = gst_structure_from_string (data, NULL))) { const gchar *name = gst_structure_get_name (s); - // TODO(ensonic): add a function for each name-id quark - // these function will do the actual stats tracking if (!strcmp (name, "new-pad")) { new_pad_stats (s); } else if (!strcmp (name, "new-element")) { @@ -805,7 +803,10 @@ collect_stats (const gchar * filename) } else if (!strcmp (name, "proc-rusage")) { do_proc_rusage_stats (s); } else { - GST_WARNING ("unknown log entry: '%s'", data); + // TODO(ensonic): parse the xxx.class log lines + if (!g_str_has_suffix (data, ".class")) { + GST_WARNING ("unknown log entry: '%s'", data); + } } gst_structure_free (s); } else { -- 2.7.4