Hello community, here is the log from the commit of package ortp for openSUSE:Factory checked in at 2020-11-06 23:43:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ortp (Old) and /work/SRC/openSUSE:Factory/.ortp.new.11331 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ortp" Fri Nov 6 23:43:04 2020 rev:16 rq:846045 version:4.4.6 Changes: -------- --- /work/SRC/openSUSE:Factory/ortp/ortp.changes 2020-06-28 23:06:20.126860487 +0200 +++ /work/SRC/openSUSE:Factory/.ortp.new.11331/ortp.changes 2020-11-06 23:43:06.351493514 +0100 @@ -1,0 +2,5 @@ +Wed Nov 4 16:07:18 UTC 2020 - Paolo Stivanin <i...@paolostivanin.com> + +- Update to 4.4.6 (no changelog) + +------------------------------------------------------------------- Old: ---- ortp-4.4.0.tar.gz New: ---- ortp-4.4.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ortp.spec ++++++ --- /var/tmp/diff_new_pack.gltwpH/_old 2020-11-06 23:43:07.119492039 +0100 +++ /var/tmp/diff_new_pack.gltwpH/_new 2020-11-06 23:43:07.119492039 +0100 @@ -20,7 +20,7 @@ %define soname libortp %define sover 15 Name: ortp -Version: 4.4.0 +Version: 4.4.6 Release: 0 Summary: Real-time Transport Protocol Stack License: GPL-2.0-or-later @@ -75,7 +75,8 @@ %cmake_install mkdir -p %{buildroot}%{_docdir}/%{name}/ -mv -T %{buildroot}%{_datadir}/doc/%{name}-%{version}/ \ +# keeping 4.4.0 here because upstream didn't update it... +mv -T %{buildroot}%{_datadir}/doc/%{name}-4.4.0/ \ %{buildroot}%{_docdir}/%{name}/ mv %{buildroot}%{_datadir}/doc/%{name}-./LICENSE.txt %{buildroot}%{_docdir}/%{name}/ ++++++ ortp-4.4.0.tar.gz -> ortp-4.4.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ortp-4.4.0/include/ortp/rtpsession.h new/ortp-4.4.6/include/ortp/rtpsession.h --- old/ortp-4.4.0/include/ortp/rtpsession.h 2020-06-15 19:23:39.000000000 +0200 +++ new/ortp-4.4.6/include/ortp/rtpsession.h 2020-07-29 18:49:30.000000000 +0200 @@ -395,6 +395,7 @@ **/ struct _RtpSession { + ortp_mutex_t main_mutex; /* To protect data that can be accessed simultaneously by a control thread and the real-time thread in charge of sending/receiving. */ RtpSession *next; /* next RtpSession, when the session are enqueued by the scheduler */ int mask_pos; /* the position in the scheduler mask of RtpSession : do not move this field: it is part of the ABI since the session_set macros use it*/ struct { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ortp-4.4.0/ortp-config.h.cmake new/ortp-4.4.6/ortp-config.h.cmake --- old/ortp-4.4.0/ortp-config.h.cmake 2020-06-15 19:23:39.000000000 +0200 +++ new/ortp-4.4.6/ortp-config.h.cmake 2020-07-29 18:49:30.000000000 +0200 @@ -41,5 +41,3 @@ #cmakedefine ORTP_DEFAULT_THREAD_STACK_SIZE ${ORTP_DEFAULT_THREAD_STACK_SIZE} #cmakedefine POSIXTIMER_INTERVAL ${POSIXTIMER_INTERVAL} #cmakedefine __APPLE_USE_RFC_3542 - -#cmakedefine ENABLE_MICROSOFT_STORE_APP diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ortp-4.4.0/src/rtpsession.c new/ortp-4.4.6/src/rtpsession.c --- old/ortp-4.4.0/src/rtpsession.c 2020-06-15 19:23:39.000000000 +0200 +++ new/ortp-4.4.6/src/rtpsession.c 2020-07-29 18:49:30.000000000 +0200 @@ -233,6 +233,7 @@ return; } memset (session, 0, sizeof (RtpSession)); + ortp_mutex_init(&session->main_mutex, NULL); session->mode = (RtpSessionMode) mode; if ((mode == RTP_SESSION_RECVONLY) || (mode == RTP_SESSION_SENDRECV)) { @@ -1690,6 +1691,7 @@ freemsg(session->rtcp.tmmbr_info.received); if (session->rtcp.send_algo.fb_packets) freemsg(session->rtcp.send_algo.fb_packets); + ortp_mutex_destroy(&session->main_mutex); } /** diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ortp-4.4.0/src/rtpsession_inet.c new/ortp-4.4.6/src/rtpsession_inet.c --- old/ortp-4.4.0/src/rtpsession_inet.c 2020-06-15 19:23:39.000000000 +0200 +++ new/ortp-4.4.6/src/rtpsession_inet.c 2020-07-29 18:49:30.000000000 +0200 @@ -929,8 +929,10 @@ ortp_free(aux_rtp); ortp_free(aux_rtcp); }else{ + ortp_mutex_lock(&session->main_mutex); session->rtp.gs.aux_destinations=o_list_append(session->rtp.gs.aux_destinations,aux_rtp); session->rtcp.gs.aux_destinations=o_list_append(session->rtcp.gs.aux_destinations,aux_rtcp); + ortp_mutex_unlock(&session->main_mutex); } } return err; @@ -960,8 +962,10 @@ } void rtp_session_clear_aux_remote_addr(RtpSession * session){ + ortp_mutex_lock(&session->main_mutex); ortp_stream_clear_aux_addresses(&session->rtp.gs); ortp_stream_clear_aux_addresses(&session->rtcp.gs); + ortp_mutex_unlock(&session->main_mutex); } void rtp_session_set_sockets(RtpSession *session, int rtpfd, int rtcpfd){ @@ -1424,10 +1428,12 @@ /*first send to main destination*/ error=rtp_session_rtp_sendto(session,m,destaddr,destlen,FALSE); /*then iterate over auxiliary destinations*/ + ortp_mutex_lock(&session->main_mutex); for(elem=session->rtp.gs.aux_destinations;elem!=NULL;elem=elem->next){ OrtpAddress *addr=(OrtpAddress*)elem->data; rtp_session_rtp_sendto(session,m,(struct sockaddr*)&addr->addr,addr->len,TRUE); } + ortp_mutex_unlock(&session->main_mutex); freemsg(m); return error; }