]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
subscription: fix the wrong raw service removal
authorJaroslav Kysela <perex@perex.cz>
Sun, 18 Oct 2015 19:47:00 +0000 (21:47 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 18 Oct 2015 19:47:32 +0000 (21:47 +0200)
src/service.c
src/subscriptions.c

index 6e39c80f24d8687eb20948742e3ab5934a4a449c..9b9f0ee4442ee847a82da68904e8a52708b00920 100644 (file)
@@ -305,7 +305,7 @@ void
 service_stop(service_t *t)
 {
   elementary_stream_t *st;
+
   gtimer_disarm(&t->s_receive_timer);
 
   t->s_stop_feed(t);
index 123eeb24081a7f5e49cb2f7ebfe0943dc4632f9d..19368c666a9bf86894600db80db4d386cfbb4feb 100644 (file)
@@ -558,11 +558,13 @@ subscription_unsubscribe(th_subscription_t *s, int quiet)
   service_t *t;
   char buf[512];
   size_t l = 0;
+  service_t *raw;
 
   if (s == NULL)
     return;
 
   t = s->ths_service;
+  raw = s->ths_raw_service;
 
   lock_assert(&global_lock);
 
@@ -574,7 +576,7 @@ subscription_unsubscribe(th_subscription_t *s, int quiet)
   LIST_SAFE_REMOVE(s, ths_remove_link);
 
 #if ENABLE_MPEGTS
-  if (s->ths_raw_service)
+  if (raw)
     LIST_REMOVE(s, ths_mux_link);
 #endif
 
@@ -600,7 +602,7 @@ subscription_unsubscribe(th_subscription_t *s, int quiet)
   }
 
 #if ENABLE_MPEGTS
-  if (s->ths_raw_service)
+  if (raw)
     service_remove_raw(s->ths_raw_service);
 #endif