fix passing in audiostream
parent
b8eac366b7
commit
a30a473981
|
@ -308,9 +308,7 @@ int main(int argc, char *argv[]) {
|
||||||
for ( int i = 0; i < n_monitors; i++ ) {
|
for ( int i = 0; i < n_monitors; i++ ) {
|
||||||
rtsp_server_threads[i] = new RTSPServerThread(monitors[i]);
|
rtsp_server_threads[i] = new RTSPServerThread(monitors[i]);
|
||||||
Camera *camera = monitors[i]->getCamera();
|
Camera *camera = monitors[i]->getCamera();
|
||||||
rtsp_server_threads[i]->addStream(camera->get_VideoStream());
|
rtsp_server_threads[i]->addStream(camera->get_VideoStream(), camera->get_AudioStream());
|
||||||
if ( camera->get_AudioStreamId() >= 0 )
|
|
||||||
rtsp_server_threads[i]->addStream(camera->get_AudioStream());
|
|
||||||
rtsp_server_threads[i]->start();
|
rtsp_server_threads[i]->start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue