From 2635a3d1bfcfdc879cf52828c7a4d67ea0735983 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 1 Jan 2015 19:46:48 +0100 Subject: [PATCH] mpegts mux: add more traces to mpegts_mux_start --- src/input/mpegts/mpegts_mux.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/input/mpegts/mpegts_mux.c b/src/input/mpegts/mpegts_mux.c index 9cebfa1d..1b293540 100644 --- a/src/input/mpegts/mpegts_mux.c +++ b/src/input/mpegts/mpegts_mux.c @@ -543,7 +543,7 @@ mpegts_mux_start int64_t aweight, *allw; mpegts_mux_nice_name(mm, buf, sizeof(buf)); - tvhtrace("mpegts", "%s - starting for '%s' (weight %d. flags %04X)", + tvhtrace("mpegts", "%s - starting for '%s' (weight %d, flags %04X)", buf, reason, weight, flags); /* Disabled */ @@ -610,6 +610,14 @@ mpegts_mux_start count++; } +#if ENABLE_TRACE + for (index = 0; index < count; index++) { + if (all[index]) + tvhtrace("mpegts", "%s - %i: prio %li weight %li", buf, index, + (long)(allw[index] >> 32), (long)(allw[index] & 0xffffffff)); + } +#endif + /* Try free inputs */ for (index = count - 1; index >= 0; index--) { mpegts_input_t *mi;