mpegts: allow service stop to be called on inactive services

This commit is contained in:
Adam Sutton 2013-09-26 23:12:41 +01:00
parent fe9bd60192
commit 0bd9a949a1

View file

@ -234,12 +234,11 @@ mpegts_service_stop(service_t *t)
/* Validate */
assert(s->s_source_type == S_MPEG_TS);
assert(i != NULL);
lock_assert(&global_lock);
/* Stop */
i->mi_close_service(i, s);
s->s_status = SERVICE_IDLE;
if (i)
i->mi_close_service(i, s);
}
/*