mpegts: allow service stop to be called on inactive services
This commit is contained in:
parent
fe9bd60192
commit
0bd9a949a1
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue