]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mpegts: fix mpegts_mux_unsubscribe_by_name() - use right list
authorJaroslav Kysela <perex@perex.cz>
Wed, 11 Mar 2015 15:21:18 +0000 (16:21 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 11 Mar 2015 20:41:13 +0000 (21:41 +0100)
src/input/mpegts/mpegts_mux.c

index 738a1c43094e06ca8d715d0970364e9ad08738f3..f366d8f863d72836309c9bc24a8f6088a2818766 100644 (file)
@@ -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;
   }
 }