windows build fixes for last commit
This commit is contained in:
parent
2c8d5d8ec9
commit
416f6388c3
|
@ -40,6 +40,8 @@
|
|||
#ifdef _MSC_VER
|
||||
/* warning C4706: assignment within conditional expression*/
|
||||
#pragma warning(disable: 4706)
|
||||
/* warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details. */
|
||||
#pragma warning(disable:4996)
|
||||
#endif
|
||||
|
||||
#define least1(_z) (_z ? _z : 1)
|
||||
|
@ -641,7 +643,7 @@ stfu_frame_t *stfu_n_read_a_frame(stfu_instance_t *i)
|
|||
|
||||
|
||||
if (!found && i->samples_per_packet) {
|
||||
int y;
|
||||
uint32_t y;
|
||||
stfu_frame_t *frame = NULL;
|
||||
|
||||
int32_t delay = i->last_rd_ts - i->cur_ts;
|
||||
|
|
|
@ -136,7 +136,7 @@ typedef void (*stfu_logger_t)(const char *file, const char *func, int line, int
|
|||
|
||||
int stfu_vasprintf(char **ret, const char *fmt, va_list ap);
|
||||
|
||||
STFU_DECLARE_DATA extern stfu_logger_t stfu_log;
|
||||
extern stfu_logger_t stfu_log;
|
||||
|
||||
/*! Sets the logger for libstfu. Default is the null_logger */
|
||||
void stfu_global_set_logger(stfu_logger_t logger);
|
||||
|
|
|
@ -2135,11 +2135,18 @@ static void do_flush(switch_rtp_t *rtp_session)
|
|||
|
||||
flushed++;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push) /* remove this stuff when "if (0" is removed */
|
||||
#pragma warning(disable:4127)
|
||||
#endif
|
||||
if (0 && rtp_session->jb) {
|
||||
stfu_n_eat(rtp_session->jb, ntohl(rtp_session->recv_msg.header.ts),
|
||||
rtp_session->recv_msg.header.pt,
|
||||
rtp_session->recv_msg.body, bytes - rtp_header_len);
|
||||
}
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
rtp_session->stats.inbound.raw_bytes += bytes;
|
||||
rtp_session->stats.inbound.flush_packet_count++;
|
||||
|
|
Loading…
Reference in New Issue