From 7cafa5ef70f10aeb9ba2f075115c89e07dad9792 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 11 Mar 2015 16:21:18 +0100 Subject: [PATCH] mpegts: fix mpegts_mux_unsubscribe_by_name() - use right list --- src/input/mpegts/mpegts_mux.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/input/mpegts/mpegts_mux.c b/src/input/mpegts/mpegts_mux.c index 738a1c43..f366d8f8 100644 --- a/src/input/mpegts/mpegts_mux.c +++ b/src/input/mpegts/mpegts_mux.c @@ -1152,19 +1152,16 @@ void mpegts_mux_unsubscribe_by_name ( mpegts_mux_t *mm, const char *name ) { - mpegts_mux_instance_t *mmi; const service_t *t; th_subscription_t *s, *n; - LIST_FOREACH(mmi, &mm->mm_instances, mmi_mux_link) { - s = LIST_FIRST(&subscriptions); - while (s) { - n = LIST_NEXT(s, ths_global_link); - t = s->ths_service; - if (t && t->s_type == STYPE_RAW && !strcmp(s->ths_title, name)) - subscription_unsubscribe(s, 0); - s = n; - } + s = LIST_FIRST(&mm->mm_raw_subs); + while (s) { + n = LIST_NEXT(s, ths_global_link); + t = s->ths_service; + if (t && t->s_type == STYPE_RAW && !strcmp(s->ths_title, name)) + subscription_unsubscribe(s, 0); + s = n; } }