1
0
mirror of https://github.com/DigitalDevices/octonet.git synced 2023-10-10 13:36:52 +02:00

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

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);
}
}
}