free http streaming ts buffer when a service stops

This commit is contained in:
John Törnblom 2012-10-18 18:33:53 +02:00
parent 77a6f4df8d
commit f3da081bba

View file

@ -153,6 +153,8 @@ service_stop(service_t *t)
TAILQ_FOREACH(st, &t->s_components, es_link)
stream_clean(st);
sbuf_free(&t->s_tsbuf);
t->s_status = SERVICE_IDLE;
pthread_mutex_unlock(&t->s_stream_mutex);