Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix missing teletext stream with different time base (bug #2178)
  • Loading branch information
johsmi authored and perexg committed Aug 1, 2014
1 parent 526417d commit 92b1a08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plumbing/tsfix.c
Expand Up @@ -149,6 +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(tf->tf_tsref == PTS_UNSET) {
pkt_ref_dec(pkt);
return;
Expand All @@ -166,7 +167,7 @@ normalize_ts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)
pkt_ref_dec(pkt);
return;
}
} else if(checkts) {
} else {
d = dts + tfs->tfs_dts_epoch - tfs->tfs_last_dts_norm;

if(d < 0 || d > 90000) {
Expand Down Expand Up @@ -211,6 +212,7 @@ normalize_ts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)
pkt->pkt_pts,
pkt->pkt_duration,
pktbuf_len(pkt->pkt_payload));
}

streaming_message_t *sm = streaming_msg_create_pkt(pkt);
streaming_target_deliver2(tf->tf_output, sm);
Expand Down

0 comments on commit 92b1a08

Please sign in to comment.