From 2d1746d35a8164efd81772547cd8580efe0bbeb0 Mon Sep 17 00:00:00 2001 From: Robert Joly Date: Tue, 10 Feb 2009 03:31:03 +0000 Subject: [PATCH] Fixed problem with compiling against latest OPAL. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11725 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_opal/mod_opal.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mod/endpoints/mod_opal/mod_opal.cpp b/src/mod/endpoints/mod_opal/mod_opal.cpp index f4b188bbfa..7e21b07891 100644 --- a/src/mod/endpoints/mod_opal/mod_opal.cpp +++ b/src/mod/endpoints/mod_opal/mod_opal.cpp @@ -965,6 +965,7 @@ switch_status_t FSConnection::write_frame(const OpalMediaType & mediaType, const FSMediaStream::FSMediaStream(FSConnection & conn, const OpalMediaFormat & mediaFormat, unsigned sessionID, bool isSource) : OpalMediaStream(conn, mediaFormat, sessionID, isSource) , m_fsSession(conn.GetSession()) + , m_readRTP(0, 512) , m_callOnStart(true) { memset(&m_readFrame, 0, sizeof(m_readFrame)); @@ -1181,8 +1182,6 @@ switch_status_t FSMediaStream::read_frame(switch_frame_t **frame, switch_io_flag switch_status_t FSMediaStream::write_frame(const switch_frame_t *frame, switch_io_flag_t flags) { - RTP_DataFrame rtp; - if (!switch_channel_ready(m_fsChannel)) { return SWITCH_STATUS_FALSE; } @@ -1210,8 +1209,8 @@ switch_status_t FSMediaStream::write_frame(const switch_frame_t *frame, switch_i better if we could engage whatever it is in opal that makes it generate the timestamp. */ + RTP_DataFrame rtp(frame->datalen); rtp.SetPayloadType(mediaFormat.GetPayloadType()); - rtp.SetPayloadSize(frame->datalen); m_timeStamp += frame->samples; rtp.SetTimestamp(m_timeStamp);