]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mpegts input: fix compilation error for ENABLE_TSDEBUG
authorJaroslav Kysela <perex@perex.cz>
Fri, 11 Mar 2016 09:31:45 +0000 (10:31 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 11 Mar 2016 09:32:34 +0000 (10:32 +0100)
src/input/mpegts/mpegts_input.c

index c7b3226108f6faf68a0d2c4093670dd6906cbf39..c563d93857c2b25e80b9063775f0ec7fbac8c6d4 100644 (file)
@@ -841,12 +841,12 @@ mpegts_input_started_mux
   if (tvheadend_tsdebug) {
     mpegts_mux_nice_name(mmi->mmi_mux, buf, sizeof(buf));
     snprintf(path, sizeof(path), "%s/%s-%li-%p-mux.ts", tvheadend_tsdebug,
-             buf, (long)dispatch_clock, mi);
+             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);
     snprintf(path, sizeof(path), "%s/%s-%li-%p-input.ts", tvheadend_tsdebug,
-             buf, (long)dispatch_clock, mi);
+             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);