Skip to content

Commit f170a50

Browse files
committed
old live555 compat
1 parent aef1b69 commit f170a50

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/rtsp/c_basicRTSPOnlyServer.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
#include "rtsp/c_basicRTSPOnlyServer.h"
4949
#include "rtsp/BasicRTSPOnlyServer.hh"
5050

51+
// compat
52+
#if BASICUSAGEENVIRONMENT_LIBRARY_VERSION_INT < 1752883200
53+
typedef char volatile EventLoopWatchVariable;
54+
#endif
55+
5156
struct rtsp_serv {
5257
struct rtsp_server_parameters params;
5358
pthread_t server_th;
@@ -61,10 +66,11 @@ c_start_server(struct rtsp_server_parameters params)
6166
server->params = params;
6267
server->watch = 0;
6368

64-
int ret;
6569
BasicRTSPOnlyServer *srv = BasicRTSPOnlyServer::initInstance(server->params);
6670
srv->init_server();
67-
ret = pthread_create(&server->server_th, NULL, BasicRTSPOnlyServer::start_server, &server->watch);
71+
int ret = pthread_create(&server->server_th, NULL,
72+
BasicRTSPOnlyServer::start_server,
73+
(void *) &server->watch);
6874
assert(ret == 0);
6975

7076
return server;

0 commit comments

Comments
 (0)