]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
subcriptions: fix fatal error for raw service - wrong destroy
authorJaroslav Kysela <perex@perex.cz>
Mon, 2 Nov 2015 16:19:48 +0000 (17:19 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 2 Nov 2015 16:19:48 +0000 (17:19 +0100)
src/subscriptions.c

index 8ff7596a49e7c3cbb616fc4896955308609f430c..e72a3ed7f7ab6755e6770ae2e95b8454fc98bbb3 100644 (file)
@@ -603,7 +603,7 @@ subscription_unsubscribe(th_subscription_t *s, int quiet)
 
 #if ENABLE_MPEGTS
   if (raw)
-    service_remove_raw(s->ths_raw_service);
+    service_remove_raw(raw);
 #endif
 
   streaming_msg_free(s->ths_start_message);
@@ -831,6 +831,8 @@ subscription_create_from_mux(profile_chain_t *prch,
   if (!s)
     return NULL;
 
+  assert((flags & SUBSCRIPTION_ONESHOT) != 0);
+
   return subscription_create_from_channel_or_service
     (prch, ti, weight, name, flags, hostname, username, client,
      error, (service_t *)s);