Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
subscription: fix the mux data timeout
  • Loading branch information
perexg committed Jan 12, 2015
1 parent 98b5304 commit 0a7ce2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/subscriptions.c
Expand Up @@ -743,8 +743,11 @@ mux_data_timeout ( void *aux )
th_subscription_t *s = aux;
mpegts_input_t *mi = s->ths_mmi->mmi_input;

if (!s->ths_mmi)
return;

if (!mi->mi_live) {
subscription_unlink_mux(s, SM_CODE_NO_INPUT);
mpegts_mux_remove_subscriber(s->ths_mmi->mmi_mux, s, SM_CODE_NO_INPUT);
return;
}
mi->mi_live = 0;
Expand Down

0 comments on commit 0a7ce2c

Please sign in to comment.