Commit 146a8b2b authored by Ghislain MARY's avatar Ghislain MARY

Fix setting DSCP on Windows.

parent 56a8d75f
......@@ -99,6 +99,9 @@ if(ENABLE_SHARED)
# Do not version shared library on Android
set_target_properties(ortp PROPERTIES SOVERSION ${ORTP_SO_VERSION})
endif()
if(WIN32)
target_compile_options(ortp PRIVATE "/DELAYLOAD:Qwave.dll")
endif()
target_compile_definitions(ortp PRIVATE "ORTP_EXPORTS")
target_link_libraries(ortp ${LIBS})
if(MSVC)
......
......@@ -1546,12 +1546,6 @@ void rtp_session_uninit (RtpSession * session)
ortp_message("check OS support for qwave.lib: %i %i %i\n",
ovi.dwMajorVersion, ovi.dwMinorVersion, ovi.dwBuildNumber);
if (ovi.dwMajorVersion > 5) {
if (FAILED(__HrLoadAllImportsForDll("qwave.dll"))) {
ortp_warning("Failed to load qwave.dll: no QoS available\n" );
}
else
{
BOOL QoSResult;
QoSResult = QOSRemoveSocketFromFlow(session->rtp.QoSHandle,
0,
......@@ -1565,7 +1559,6 @@ void rtp_session_uninit (RtpSession * session)
session->rtp.QoSFlowID=0;
}
}
}
if (session->rtp.QoSHandle != NULL)
{
......
......@@ -660,12 +660,6 @@ int rtp_session_set_dscp(RtpSession *session, int dscp){
ortp_message("check OS support for qwave.lib: %i %i %i\n",
ovi.dwMajorVersion, ovi.dwMinorVersion, ovi.dwBuildNumber);
if (ovi.dwMajorVersion > 5) {
if (FAILED(__HrLoadAllImportsForDll("qwave.dll"))) {
ortp_warning("Failed to load qwave.dll: no QoS available\n" );
}
else
{
if (session->dscp==0)
tos=QOSTrafficTypeBestEffort;
else if (session->dscp==0x8)
......@@ -708,7 +702,6 @@ int rtp_session_set_dscp(RtpSession *session, int dscp){
retval=-1;
}
}
}
} else {
#endif
// DSCP value is in the upper six bits of the TOS field
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment