diff --git a/transports.c b/transports.c index d26075e2..816dfe78 100644 --- a/transports.c +++ b/transports.c @@ -105,7 +105,7 @@ transport_stop(th_transport_t *t, int flush_subscriptions) st->st_buffer = NULL; st->st_buffer_size = 0; st->st_buffer_ptr = 0; - + st->st_startcode = 0; /* Clear DTS queue */ @@ -162,6 +162,8 @@ transport_start(th_transport_t *t, unsigned int weight) LIST_FOREACH(st, &t->tht_streams, st_link) { + st->st_startcond = 0xffffffff; + st->st_dts = AV_NOPTS_VALUE; st->st_last_dts = 0; st->st_dts_u = 0; diff --git a/tvhead.h b/tvhead.h index ef9c3eff..29793130 100644 --- a/tvhead.h +++ b/tvhead.h @@ -293,6 +293,8 @@ typedef struct th_stream { int st_buffer_ptr; int st_buffer_size; int st_buffer_errors; /* Errors accumulated for this packet */ + uint32_t st_startcond; + uint32_t st_startcode; /* DTS generator */