[Live-devel] use of volatile in doEventLoop for interthread synchronization

2024-08-01 Thread gback
Hi, the current Live555 uses `volatile` for interthread synchronization in doEventLoop. As per C++ specification, volatile cannot be used for this purpose and in fact introduces undefined behavior. (*) Although we can argue about what practical effect this has I believe that just followin

[Live-devel] ServerMediaSession::generateSDPDescription breaks if time_t is a 64-bit long long but sizeof(long) == 4

2024-08-01 Thread gback
Hi, in ServerMediaSession::generateSDPDescription the format specifier %ld is used to print fCreationTime.tv_sec, which treats this variable as if it is of type long. However, to avoid the Year 2038 problem, time_t today is typically 64bit. On machines using the LLP64 model, long is only 32bi