summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2010-10-12 00:00:09 +0300
committerStefan Kost <ensonic@users.sf.net>2010-10-12 00:00:09 +0300
commit83262140190c049d2e4aed3e88964c991f7d26b5 (patch)
tree398bba9928011bd49a11937eb0e9aaebb47744b2
parentafe03958c6b6f06df150c9b88e3189960e124042 (diff)
tracelib: only hide elements with no activity from the final stats
-rw-r--r--src/gsttracelib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gsttracelib.c b/src/gsttracelib.c
index 4d1d93d..94723b4 100644
--- a/src/gsttracelib.c
+++ b/src/gsttracelib.c
@@ -704,9 +704,9 @@ _print_element_stats (gpointer value, gpointer user_data)
{
GsttlElementStats *stats=(GsttlElementStats *)value;
- /* there seem to be some temporary pads */
- if (stats->recv_buffers || stats->sent_buffers) {
- GstClockTimeDiff running = GST_CLOCK_DIFF (stats->first_ts, stats->last_ts);
+ /* skip temporary elements */
+ if (stats->first_ts!=GST_CLOCK_TIME_NONE) {
+ //GstClockTimeDiff running = GST_CLOCK_DIFF (stats->first_ts, stats->last_ts);
gchar fullname[45+1];
g_snprintf(fullname,45,"%s:%s",g_type_name(stats->type), stats->name);