rawtsinput: Handle stream delete

This commit is contained in:
Andreas Öman 2012-10-23 09:13:59 +00:00
parent da06305864
commit d97f19f963
2 changed files with 5 additions and 1 deletions

View file

@ -468,6 +468,10 @@ psi_parse_pmt(service_t *t, const uint8_t *ptr, int len, int chksvcid,
/* Mark all streams for deletion */
if(delete) {
TAILQ_FOREACH(st, &t->s_components, es_link) {
if(st->es_type == SCT_PMT)
continue;
st->es_delete_me = 1;
LIST_FOREACH(c, &st->es_caids, link)

View file

@ -164,7 +164,7 @@ got_pmt(struct service *t, elementary_stream_t *st,
return;
pthread_mutex_lock(&global_lock);
psi_parse_pmt(t, table + 3, table_len - 3, 1, 0);
psi_parse_pmt(t, table + 3, table_len - 3, 1, 1);
pthread_mutex_unlock(&global_lock);
}