#if ENABLE_TSDEBUG
if (mm && mm->mm_tsdebug_fd2 >= 0)
if (write(mm->mm_tsdebug_fd2, buf, len) != len)
- tvherror("tsdebug", "unable to write input data (%i)", errno);
+ tvherror(LS_TSDEBUG, "unable to write input data (%i)", errno);
#endif
}
buf, (long)mono2sec(mclk()), mi);
mmi->mmi_mux->mm_tsdebug_fd = tvh_open(path, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR);
if (mmi->mmi_mux->mm_tsdebug_fd < 0)
- tvherror("tsdebug", "unable to create file '%s' (%i)", path, errno);
+ tvherror(LS_TSDEBUG, "unable to create file '%s' (%i)", path, errno);
snprintf(path, sizeof(path), "%s/%s-%li-%p-input.ts", tvheadend_tsdebug,
buf, (long)mono2sec(mclk()), mi);
mmi->mmi_mux->mm_tsdebug_fd2 = tvh_open(path, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR);
if (mmi->mmi_mux->mm_tsdebug_fd2 < 0)
- tvherror("tsdebug", "unable to create file '%s' (%i)", path, errno);
+ tvherror(LS_TSDEBUG, "unable to create file '%s' (%i)", path, errno);
} else {
mmi->mmi_mux->mm_tsdebug_fd = -1;
mmi->mmi_mux->mm_tsdebug_fd2 = -1;
[LS_TIMESHIFT] = { "timeshift", N_("Timeshift") },
[LS_SCANFILE] = { "scanfile", N_("Scanfile") },
[LS_TSFILE] = { "tsfile", N_("MPEG-TS File") },
+ [LS_TSDEBUG] = { "tsdebug", N_("MPEG-TS Input Debug") },
};
static void