Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintenance: merge master 1.2.2 #215

Merged
merged 2 commits into from
Jan 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ option(ENABLE_LOGGING "Should logging be enabled" ${ENABLE_LOGGING_DEFAULT})
option(ENABLE_SHARED "Should libsrt be built as a shared library" ON)
option(ENABLE_SEPARATE_HAICRYPT "Should haicrypt be built as a separate library file" OFF)
option(ENABLE_SUFLIP "Shuld suflip tool be built" OFF)
option(USE_GNUTLS "Should use gnutls instead of openssl" OFF)
option(ENABLE_C_DEPS "Extra library dependencies in srt.pc for C language" OFF)
option(USE_STATIC_LIBSTDCXX "Should use static rather than shared libstdc++" OFF)

Expand Down Expand Up @@ -138,6 +139,7 @@ if ( USE_GNUTLS )
)
message(STATUS "SSL Dependency: using GNUTLS with Nettle, as requested")
else()
set (SSL_REQUIRED_MODULES "openssl libcrypto zlib")
find_package(OpenSSL REQUIRED)
set (SSL_INCLUDE_DIRS ${OPENSSL_INCLUDE_DIR})
set (SSL_LIBRARIES ${OPENSSL_LIBRARIES})
Expand Down Expand Up @@ -441,7 +443,7 @@ if (ENABLE_SHARED)
endif()

if ( WIN32 AND (NOT MINGW AND NOT CYGWIN) )
target_link_libraries(${TARGET_srt} PUBLIC Ws2_32.lib)
target_link_libraries(${TARGET_srt} PUBLIC Ws2_32.lib)
endif()

install(TARGETS ${TARGET_srt}
Expand Down Expand Up @@ -520,7 +522,8 @@ if ( ENABLE_CXX11 )
# XXX This fix was never necessary, srt_compat.c is
# included in the SRT library. This was motivated by some error report
# from some CI system, so leaving the commented-out parts for historical reasons.

# Please remove it completely once 1.3.0 version is released.

# Enforce interpreting this file as C++ so that C++ compiler is used to compile it.
# This should result in exactly the same as when it was compiled as C, with the
# exception that the compiler with accept any C++-only COMPILE_FLAGS (e.g. -std=c++11).
Expand All @@ -536,7 +539,7 @@ if ( ENABLE_CXX11 )
${SOURCES_transmit}
)

# srt-file-transmit must be temporarily blocked on Windows because it's not yet portable
# srt-file-transmit must be temporarily blocked on Windows because it's not yet portable
if (NOT WIN32)
add_executable(srt-file-transmit
${CMAKE_CURRENT_SOURCE_DIR}/apps/srt-file-transmit.cpp
Expand Down
5 changes: 5 additions & 0 deletions configure-data.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ proc postprocess {} {
set have_gnutls 0
}

if { $have_gnutls } {
lappend ::cmakeopt "-DUSE_GNUTLS=ON"
}

set have_pthread 0
if { [lsearch -glob $::optkeys --with-pthread*] != -1 } {
set have_pthread 1
Expand Down Expand Up @@ -366,6 +370,7 @@ proc postprocess {} {
if { $::HAVE_DARWIN } {

if { $have_gnutls } {
# Use gnutls explicitly, as found in brew
set er [catch {exec brew info gnutls} res]
if { $er } {
error "Cannot find gnutls in brew"
Expand Down
Binary file removed docs/SRT_History_Good_Signal.png
Binary file not shown.
Binary file removed docs/SRT_Transmission_Bad_Signal.png
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/srt.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Version: @SRT_VERSION@
Libs: -L${libdir} -l@TARGET_srt@ @IFNEEDED_LINK_HAICRYPT@ @IFNEEDED_SRTBASE@ @IFNEEDED_SRT_LDFLAGS@
Libs.private: @SRT_LIBS_PRIVATE@
Cflags: -I${includedir}

Requires.private: @SSL_REQUIRED_MODULES@
1 change: 1 addition & 0 deletions srtcore/channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ modified by
#else
#include <winsock2.h>
#include <ws2tcpip.h>
#include <mswsock.h>
#endif

#include <iostream>
Expand Down
1 change: 1 addition & 0 deletions srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,7 @@ void CUDT::clearData()
m_llSentTotal = m_llRecvTotal = m_iSndLossTotal = m_iRcvLossTotal = m_iRetransTotal = m_iSentACKTotal = m_iRecvACKTotal = m_iSentNAKTotal = m_iRecvNAKTotal = 0;
m_LastSampleTime = CTimer::getTime();
m_llTraceSent = m_llTraceRecv = m_iTraceSndLoss = m_iTraceRcvLoss = m_iTraceRetrans = m_iSentACK = m_iRecvACK = m_iSentNAK = m_iRecvNAK = 0;
m_iTraceRcvRetrans = 0;
m_iTraceReorderDistance = 0;
m_fTraceBelatedTime = 0.0;
m_iTraceRcvBelated = 0;
Expand Down