void
subscription_unsubscribe(th_subscription_t *s, int quiet)
{
- service_t *t = s->ths_service;
+ 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);
s->ths_state = SUBSCRIPTION_ZOMBIE;
LIST_SAFE_REMOVE(s, ths_remove_link);
#if ENABLE_MPEGTS
- if (s->ths_raw_service)
+ if (raw)
LIST_REMOVE(s, ths_mux_link);
#endif
}
#if ENABLE_MPEGTS
- if (s->ths_raw_service)
+ if (raw)
service_remove_raw(s->ths_raw_service);
#endif