SET_PID needs pointer of pointer

This commit is contained in:
Ralph Metzler 2016-04-19 12:39:54 +02:00
parent d69513eb89
commit f6c13c7a6b
1 changed files with 3 additions and 1 deletions

View File

@ -1459,9 +1459,11 @@ static void adjust_no_sessions(struct ossess *oss)
if (nso->state && (nso->stream == str) &&
(nso != oss) && !nso->trans.mcast) {
uint8_t *pids = nso->p.pid;
memcpy(&nso->p, &oss->p, sizeof(struct dvb_params));
if (nso->nsfd >= 0)
ioctl(nso->nsfd, NS_SET_PIDS, nso->p.pid);
ioctl(nso->nsfd, NS_SET_PIDS, &pids);
}
}
}