]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mpegts mux: add more traces to mpegts_mux_start
authorJaroslav Kysela <perex@perex.cz>
Thu, 1 Jan 2015 18:46:48 +0000 (19:46 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 1 Jan 2015 18:46:48 +0000 (19:46 +0100)
src/input/mpegts/mpegts_mux.c

index 9cebfa1d5b31b68a2a8290938e80a506830ce426..1b293540ee4b049e4e495d091348d46ab7afc173 100644 (file)
@@ -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;