Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ortp for openSUSE:Factory checked in at 2021-04-01 14:16:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ortp (Old) and /work/SRC/openSUSE:Factory/.ortp.new.2401 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ortp" Thu Apr 1 14:16:36 2021 rev:23 rq:882347 version:4.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ortp/ortp.changes 2021-03-18 22:54:21.399492987 +0100 +++ /work/SRC/openSUSE:Factory/.ortp.new.2401/ortp.changes 2021-04-01 14:17:00.243951376 +0200 @@ -1,0 +2,6 @@ +Wed Mar 31 12:06:34 UTC 2021 - Paolo Stivanin <i...@paolostivanin.com> + +- Update to 4.5.0: + * minor fixes + +------------------------------------------------------------------- Old: ---- ortp-4.4.33.tar.gz New: ---- ortp-4.5.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ortp.spec ++++++ --- /var/tmp/diff_new_pack.gpHzqD/_old 2021-04-01 14:17:00.795952233 +0200 +++ /var/tmp/diff_new_pack.gpHzqD/_new 2021-04-01 14:17:00.799952241 +0200 @@ -20,7 +20,7 @@ %define soname libortp %define sover 15 Name: ortp -Version: 4.4.33 +Version: 4.5.0 Release: 0 Summary: Real-time Transport Protocol Stack License: GPL-2.0-or-later @@ -71,8 +71,8 @@ %cmake_install mkdir -p %{buildroot}%{_docdir}/%{name}/ -# keeping 4.4.0 here because upstream didn't update it... -mv -T %{buildroot}%{_datadir}/doc/%{name}-4.4.0/ \ +# manually keeping the version here because upstream doesn't (usually) update the patch version +mv -T %{buildroot}%{_datadir}/doc/%{name}-4.5.0/ \ %{buildroot}%{_docdir}/%{name}/ mv %{buildroot}%{_datadir}/doc/%{name}-./LICENSE.txt %{buildroot}%{_docdir}/%{name}/ ++++++ ortp-4.4.33.tar.gz -> ortp-4.5.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ortp-4.4.33/CHANGELOG.md new/ortp-4.5.0/CHANGELOG.md --- old/ortp-4.4.33/CHANGELOG.md 2021-02-17 18:54:18.000000000 +0100 +++ new/ortp-4.5.0/CHANGELOG.md 2021-03-23 14:09:09.000000000 +0100 @@ -7,6 +7,11 @@ ## [Unreleased] +## [4.5.0] - 2021-03-29 + +### Fixed +- minor fixes + ## [4.4.0] - 2019-06-16 ### Added diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ortp-4.4.33/CMakeLists.txt new/ortp-4.5.0/CMakeLists.txt --- old/ortp-4.4.33/CMakeLists.txt 2021-02-17 18:54:18.000000000 +0100 +++ new/ortp-4.5.0/CMakeLists.txt 2021-03-23 14:09:09.000000000 +0100 @@ -21,7 +21,7 @@ ############################################################################ cmake_minimum_required(VERSION 3.1) -project(oRTP VERSION 4.4.0) +project(oRTP VERSION 4.5.0) set(ORTP_MAJOR_VERSION ${PROJECT_VERSION_MAJOR}) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ortp-4.4.33/include/ortp/port.h new/ortp-4.5.0/include/ortp/port.h --- old/ortp-4.4.33/include/ortp/port.h 2021-02-17 18:54:18.000000000 +0100 +++ new/ortp-4.5.0/include/ortp/port.h 2021-03-23 14:09:09.000000000 +0100 @@ -40,7 +40,7 @@ #include <stdarg.h> #include <string.h> -#ifdef __linux +#ifdef __linux__ #include <stdint.h> #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ortp-4.4.33/src/CMakeLists.txt new/ortp-4.5.0/src/CMakeLists.txt --- old/ortp-4.4.33/src/CMakeLists.txt 2021-02-17 18:54:18.000000000 +0100 +++ new/ortp-4.5.0/src/CMakeLists.txt 2021-03-23 14:09:09.000000000 +0100 @@ -135,7 +135,7 @@ target_link_libraries(ortp PUBLIC bctoolbox PRIVATE ${LIBS}) if(MSVC) if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}/ortp.pdb + install(FILES $<TARGET_PDB_FILE:ortp> DESTINATION ${CMAKE_INSTALL_BINDIR} PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ortp-4.4.33/src/payloadtype.c new/ortp-4.5.0/src/payloadtype.c --- old/ortp-4.4.33/src/payloadtype.c 2021-02-17 18:54:18.000000000 +0100 +++ new/ortp-4.5.0/src/payloadtype.c 2021-03-23 14:09:09.000000000 +0100 @@ -148,17 +148,19 @@ static const char *find_param_occurence_of(const char *fmtp, const char *param){ const char *pos=fmtp; + int param_len = (int)strlen(param); do{ pos=strstr(pos,param); if (pos){ /*check that the occurence found is not a subword of a parameter name*/ - if (pos==fmtp) break; - if (pos[-1]==';' || pos[-1]==' '){ - break; + if (pos==fmtp){ + if (pos[param_len] == '=') break; /* found it */ + }else if ((pos[-1]==';' || pos[-1]==' ') && pos[param_len] == '='){ + break; /* found it */ } pos+=strlen(param); } - }while(pos!=NULL); + }while (pos!=NULL); return pos; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ortp-4.4.33/src/port.c new/ortp-4.5.0/src/port.c --- old/ortp-4.4.33/src/port.c 2021-02-17 18:54:18.000000000 +0100 +++ new/ortp-4.5.0/src/port.c 2021-03-23 14:09:09.000000000 +0100 @@ -785,7 +785,7 @@ } void ortp_sleep_until(const ortpTimeSpec *ts){ -#ifdef __linux +#ifdef __linux__ struct timespec rq; rq.tv_sec=ts->tv_sec; rq.tv_nsec=ts->tv_nsec; @@ -863,7 +863,7 @@ return 0; } #endif -#elif defined(__QNXNTO__) || ((defined(__linux) || defined(__APPLE__)) && !defined(HAVE_ARC4RANDOM)) +#elif defined(__QNXNTO__) || ((defined(__linux__) || defined(__APPLE__)) && !defined(HAVE_ARC4RANDOM)) static unsigned int ortp_urandom(void) { static int fd=-1; @@ -889,7 +889,7 @@ #else return arc4random(); #endif -#elif defined(__linux) || defined(__APPLE__) +#elif defined(__linux__) || defined(__APPLE__) return ortp_urandom(); #elif defined(_WIN32) static int initd=0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ortp-4.4.33/src/rtcp.c new/ortp-4.5.0/src/rtcp.c --- old/ortp-4.4.33/src/rtcp.c 2021-02-17 18:54:18.000000000 +0100 +++ new/ortp-4.5.0/src/rtcp.c 2021-03-23 14:09:09.000000000 +0100 @@ -384,8 +384,8 @@ if (size<sizeof(rtcp_app_t)) return 0; rtcp_common_header_init(&app->ch,session,RTCP_APP,subtype,size); app->ssrc=htonl(session->snd.ssrc); - memset(app->name, 0, 4); - strncpy(app->name, name, sizeof(app->name) - 1); + memset(app->name, 0, sizeof(app->name)); + memcpy(app->name, name, sizeof(app->name)); return sizeof(rtcp_app_t); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ortp-4.4.33/src/rtpsession_inet.c new/ortp-4.5.0/src/rtpsession_inet.c --- old/ortp-4.4.33/src/rtpsession_inet.c 2021-02-17 18:54:18.000000000 +0100 +++ new/ortp-4.5.0/src/rtpsession_inet.c 2021-03-23 14:09:09.000000000 +0100 @@ -1086,7 +1086,7 @@ if (controlSize == 0) msg.Control.buf = NULL; error = WSASendMsg(sock, &msg, 0, &dwBytes, NULL, NULL); - if( error == SOCKET_ERROR && controlSize != 0){ + if( error == SOCKET_ERROR && controlSize != 0){ int errorCode = WSAGetLastError(); if( errorCode == WSAEINVAL || errorCode==WSAENETUNREACH || errorCode==WSAEFAULT) { @@ -1094,8 +1094,8 @@ msg.Control.buf = NULL; error = WSASendMsg(sock, &msg, 0, &dwBytes, NULL, NULL); } - } - return error; + } + return dwBytes;// Return the bytes that have been sent } #else #ifdef USE_SENDMSG @@ -1226,15 +1226,15 @@ } int _ortp_sendto(ortp_socket_t sockfd, mblk_t *m, int flags, const struct sockaddr *destaddr, socklen_t destlen) { - int error; + int sent_bytes; #if defined(_WIN32) || defined(_WIN32_WCE) || defined(USE_SENDMSG) - error = rtp_sendmsg(sockfd, m, destaddr, destlen); + sent_bytes = rtp_sendmsg(sockfd, m, destaddr, destlen); #else if (m->b_cont != NULL) msgpullup(m, -1); - error = sendto(sockfd, (char*)m->b_rptr, (int)(m->b_wptr - m->b_rptr), 0, destaddr, destlen); + sent_bytes = sendto(sockfd, (char*)m->b_rptr, (int)(m->b_wptr - m->b_rptr), 0, destaddr, destlen); #endif - return error; + return sent_bytes; } int rtp_session_sendto(RtpSession *session, bool_t is_rtp, mblk_t *m, int flags, const struct sockaddr *destaddr, socklen_t destlen){