mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 06:08:07 +00:00
Add missing b64 on windows platform
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@9 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
e3cd2bfb84
commit
0894e92a5c
1 changed files with 6 additions and 2 deletions
|
|
@ -21,8 +21,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include "mediastreamer2/msticker.h"
|
||||
|
||||
#include "ortp/telephonyevents.h"
|
||||
#if defined(__cplusplus)
|
||||
#define B64_NO_NAMESPACE
|
||||
#endif
|
||||
#include "ortp/b64.h"
|
||||
|
||||
|
||||
struct SenderData {
|
||||
RtpSession *session;
|
||||
struct CandidatePair *cpair; /* table of 10 cpair */
|
||||
|
|
@ -126,7 +130,7 @@ static int sender_unmute_mic(MSFilter * f, void *arg)
|
|||
static int sender_set_relay_session_id(MSFilter *f, void*arg){
|
||||
SenderData *d = (SenderData *) f->data;
|
||||
const char *tmp=(const char *)arg;
|
||||
d->relay_session_id_size=b64_decode(tmp, strlen(tmp), d->relay_session_id, sizeof(d->relay_session_id));
|
||||
d->relay_session_id_size=b64_decode(tmp, strlen(tmp), (void*)d->relay_session_id, (unsigned int)sizeof(d->relay_session_id));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -185,7 +189,7 @@ static void sender_process(MSFilter * f)
|
|||
if (d->relay_session_id_size>0 &&
|
||||
( (f->ticker->time-d->last_rsi_time)>5000 || d->last_rsi_time==0) ) {
|
||||
ms_message("relay session id sent in RTCP APP");
|
||||
rtp_session_send_rtcp_APP(s,0,"RSID",d->relay_session_id,d->relay_session_id_size);
|
||||
rtp_session_send_rtcp_APP(s,0,"RSID",(const uint8_t *)d->relay_session_id,d->relay_session_id_size);
|
||||
d->last_rsi_time=f->ticker->time;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue