]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
timeshift: add little comment to last pts delta fix
authorJaroslav Kysela <perex@perex.cz>
Thu, 23 Oct 2014 16:19:11 +0000 (18:19 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 23 Oct 2014 16:19:11 +0000 (18:19 +0200)
src/timeshift.c

index de4b0675a03f0aa3a9bedc873ca0dd0ba6fe1fd8..6f1ab5decc71f9f520933a6460c9a5b9d8de69dd 100644 (file)
@@ -171,6 +171,12 @@ static void timeshift_input
     /* Record (one-off) PTS delta */
     if (sm->sm_type == SMT_PACKET && ts->pts_delta == PTS_UNSET) {
       if (pkt->pkt_pts != PTS_UNSET) {
+        /*
+         * Gather some packets and select the lowest pts to identify
+         * the correct start. Note that for timeshift, the tsfix
+         * stream plugin is applied, so the starting pts should be
+         * near zero. If not - it's a bug.
+         */
         int i;
         int64_t smallest = INT64_MAX;
         for (i = 0; i < ARRAY_SIZE(ts->pts_val); i++) {