From a3529672d7a0f49c4823ba536e04417454e8cc52 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 19 Apr 2007 22:04:03 +0000 Subject: [PATCH] video stuff windows build. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4978 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- Freeswitch.sln | 9 +++++++++ src/include/switch_rtp.h | 2 +- src/mod/codecs/mod_h26x/mod_h26x.vcproj | 2 +- src/switch_rtp.c | 6 +++--- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Freeswitch.sln b/Freeswitch.sln index dcdf062b31..5a86f7dbd2 100644 --- a/Freeswitch.sln +++ b/Freeswitch.sln @@ -600,6 +600,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "m4", "m4", "{CDE9B06A-3C27- build\config\ax_compiler_vendor.m4 = build\config\ax_compiler_vendor.m4 EndProjectSection EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mod_h26x", "src\mod\codecs\mod_h26x\mod_h26x.vcproj", "{2C3C2423-234B-4772-8899-D3B137E5CA35}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 @@ -1122,6 +1124,12 @@ Global {8DEB383C-4091-4F42-A56F-C9E46D552D79}.Release|Win32.ActiveCfg = Release Passthrough|Win32 {8DEB383C-4091-4F42-A56F-C9E46D552D79}.Release|Win32.Build.0 = Release Passthrough|Win32 {8DEB383C-4091-4F42-A56F-C9E46D552D79}.Release|x64.ActiveCfg = Release|Win32 + {2C3C2423-234B-4772-8899-D3B137E5CA35}.Debug|Win32.ActiveCfg = Debug|Win32 + {2C3C2423-234B-4772-8899-D3B137E5CA35}.Debug|Win32.Build.0 = Debug|Win32 + {2C3C2423-234B-4772-8899-D3B137E5CA35}.Debug|x64.ActiveCfg = Debug|Win32 + {2C3C2423-234B-4772-8899-D3B137E5CA35}.Release|Win32.ActiveCfg = Release|Win32 + {2C3C2423-234B-4772-8899-D3B137E5CA35}.Release|Win32.Build.0 = Release|Win32 + {2C3C2423-234B-4772-8899-D3B137E5CA35}.Release|x64.ActiveCfg = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -1137,6 +1145,7 @@ Global {D42518CC-7475-454D-B392-0E132C07D761} = {F881ADA2-2F1A-4046-9FEB-191D9422D781} {FEA1EEF7-876F-48DE-88BF-C0E3E606D758} = {F881ADA2-2F1A-4046-9FEB-191D9422D781} {8DEB383C-4091-4F42-A56F-C9E46D552D79} = {F881ADA2-2F1A-4046-9FEB-191D9422D781} + {2C3C2423-234B-4772-8899-D3B137E5CA35} = {F881ADA2-2F1A-4046-9FEB-191D9422D781} {3A2A7795-C216-4FFF-B8EF-4D17A84BACCC} = {9ADF1E48-2F5C-4ED7-A893-596259FABFE0} {F10BE67C-A8FF-4CB2-AF29-D46D2590DC59} = {9ADF1E48-2F5C-4ED7-A893-596259FABFE0} {C7705DC4-2088-493E-AF8D-65BC6D65C125} = {9ADF1E48-2F5C-4ED7-A893-596259FABFE0} diff --git a/src/include/switch_rtp.h b/src/include/switch_rtp.h index dbba4fdfcf..3cfcd8a154 100644 --- a/src/include/switch_rtp.h +++ b/src/include/switch_rtp.h @@ -348,7 +348,7 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra */ SWITCH_DECLARE(int) switch_rtp_write_manual(switch_rtp_t *rtp_session, void *data, - uint16_t datalen, + uint32_t datalen, uint8_t m, switch_payload_t payload, uint32_t ts, uint16_t mseq, uint32_t ssrc, switch_frame_flag_t *flags); /*! diff --git a/src/mod/codecs/mod_h26x/mod_h26x.vcproj b/src/mod/codecs/mod_h26x/mod_h26x.vcproj index 2e66ff5a31..1205ac5e7c 100644 --- a/src/mod/codecs/mod_h26x/mod_h26x.vcproj +++ b/src/mod/codecs/mod_h26x/mod_h26x.vcproj @@ -3,7 +3,7 @@ ProjectType="Visual C++" Version="8.00" Name="mod_h26x" - ProjectGUID="{5844AFE1-AA3E-4BDB-A9EF-119AEF19DF88}" + ProjectGUID="{2C3C2423-234B-4772-8899-D3B137E5CA35}" RootNamespace="mod_h26x" Keyword="Win32Proj" > diff --git a/src/switch_rtp.c b/src/switch_rtp.c index c18955512b..aec2cb0e22 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1146,7 +1146,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_zerocopy_read_frame(switch_rtp_t *rtp frame->source = __FILE__; frame->flags |= SFF_RAW_RTP; frame->timestamp = ntohl(rtp_session->recv_msg.header.ts); - frame->seq = ntohs(rtp_session->recv_msg.header.seq); + frame->seq = (uint16_t)ntohs((u_short)rtp_session->recv_msg.header.seq); frame->ssrc = ntohl(rtp_session->recv_msg.header.ssrc); frame->m = rtp_session->recv_msg.header.m ? SWITCH_TRUE : SWITCH_FALSE; @@ -1488,7 +1488,7 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra if (switch_test_flag(frame, SFF_RTP_HEADER)) { return switch_rtp_write_manual(rtp_session, frame->data, frame->datalen, frame->m, frame->payload, - frame->timestamp, frame->seq, frame->ssrc, &frame->flags); + (uint32_t)(frame->timestamp), frame->seq, frame->ssrc, &frame->flags); } @@ -1521,7 +1521,7 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra SWITCH_DECLARE(int) switch_rtp_write_manual(switch_rtp_t *rtp_session, void *data, - uint16_t datalen, + uint32_t datalen, uint8_t m, switch_payload_t payload, uint32_t ts, uint16_t mseq, uint32_t ssrc, switch_frame_flag_t *flags) { rtp_msg_t send_msg = { {0} };