]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Include subtitle type streams in PTS/DTS normalization
authorJohn Smith <johns90812@gmail.com>
Wed, 30 Jul 2014 08:35:25 +0000 (10:35 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 1 Aug 2014 14:57:26 +0000 (16:57 +0200)
src/plumbing/tsfix.c

index fbaac911147d864f20388eda3dcf0917ca9c5307..8c3503c39e250ed8a66127b45e88f04926e7b63f 100644 (file)
@@ -149,7 +149,7 @@ normalize_ts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)
 
   int checkts = SCT_ISAUDIO(tfs->tfs_type) || SCT_ISVIDEO(tfs->tfs_type);
 
-  if (checkts) {
+  if (checkts || SCT_ISSUBTITLE(tfs->tfs_type)) {
     if(tf->tf_tsref == PTS_UNSET) {
       pkt_ref_dec(pkt);
       return;
@@ -167,7 +167,7 @@ normalize_ts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)
         pkt_ref_dec(pkt);
         return;
       }
-    } else {
+    } else if (checkts) {
       d = dts + tfs->tfs_dts_epoch - tfs->tfs_last_dts_norm;
 
       if(d < 0 || d > 90000) {