service: fix some mistakes in service saving
This commit is contained in:
parent
c412f6e28c
commit
afd6d085d9
2 changed files with 4 additions and 0 deletions
|
@ -294,5 +294,7 @@ mpegts_service_find
|
|||
void
|
||||
mpegts_service_save ( mpegts_service_t *s, htsmsg_t *c )
|
||||
{
|
||||
pthread_mutex_lock(&s->s_stream_mutex);
|
||||
service_save((service_t*)s, c);
|
||||
pthread_mutex_unlock(&s->s_stream_mutex);
|
||||
}
|
||||
|
|
|
@ -1277,6 +1277,8 @@ void service_save ( service_t *t, htsmsg_t *m )
|
|||
elementary_stream_t *st;
|
||||
htsmsg_t *list, *sub;
|
||||
|
||||
idnode_save(&t->s_id, m);
|
||||
|
||||
htsmsg_add_u32(m, "pcr", t->s_pcr_pid);
|
||||
|
||||
lock_assert(&t->s_stream_mutex);
|
||||
|
|
Loading…
Add table
Reference in a new issue