Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
subcriptions: fix fatal error for raw service - wrong destroy
  • Loading branch information
perexg committed Nov 2, 2015
1 parent 927b695 commit e2d8fe0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/subscriptions.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e2d8fe0

Please sign in to comment.