From fd9d1f75114e3de7b16cb31ff593c98030565d3f Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Wed, 25 Sep 2013 21:22:44 +0100 Subject: [PATCH] mpegts: some extra debug --- src/input/mpegts/mpegts_mux.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/input/mpegts/mpegts_mux.c b/src/input/mpegts/mpegts_mux.c index 2424d06a..1af02279 100644 --- a/src/input/mpegts/mpegts_mux.c +++ b/src/input/mpegts/mpegts_mux.c @@ -330,12 +330,15 @@ mpegts_mux_start while (pass < 2) { tune = NULL; if (!mmi) mmi = LIST_FIRST(&mm->mm_instances); + tvhtrace("mpegts", "%s - checking mmi %p", buf, mmi); /* First pass - free only */ if (!pass) { + int e = mmi->mmi_input->mi_is_enabled(mmi->mmi_input); + int f = mmi->mmi_input->mi_is_free(mmi->mmi_input); + tvhtrace("mpegts", "%s - enabled %d free %d\n", buf, e, f); - if (mmi->mmi_input->mi_is_enabled(mmi->mmi_input) && - mmi->mmi_input->mi_is_free(mmi->mmi_input)) { + if (e && f) { havefree = 1; if (!mmi->mmi_tune_failed) { tune = mmi;