]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fixed problem with compiling against latest OPAL.
authorRobert Joly <rjoly@nortel.com>
Tue, 10 Feb 2009 03:31:03 +0000 (03:31 +0000)
committerRobert Joly <rjoly@nortel.com>
Tue, 10 Feb 2009 03:31:03 +0000 (03:31 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11725 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_opal/mod_opal.cpp

index f4b188bbfa552d6885dd46e49eb5796c3a3f342e..7e21b078916427c1a68fe7be229dd07b2c97954c 100644 (file)
@@ -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)\r
     : OpalMediaStream(conn, mediaFormat, sessionID, isSource)\r
     , m_fsSession(conn.GetSession())\r
+    , m_readRTP(0, 512)\r
     , m_callOnStart(true)\r
 {\r
     memset(&m_readFrame, 0, sizeof(m_readFrame));\r
@@ -1181,8 +1182,6 @@ switch_status_t FSMediaStream::read_frame(switch_frame_t **frame, switch_io_flag
 \r
 switch_status_t FSMediaStream::write_frame(const switch_frame_t *frame, switch_io_flag_t flags)\r
 {\r
-    RTP_DataFrame rtp;\r
-\r
     if (!switch_channel_ready(m_fsChannel)) {\r
         return SWITCH_STATUS_FALSE;\r
     }\r
@@ -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.\r
      */\r
 \r
+    RTP_DataFrame rtp(frame->datalen);\r
     rtp.SetPayloadType(mediaFormat.GetPayloadType());\r
-    rtp.SetPayloadSize(frame->datalen);\r
 \r
     m_timeStamp += frame->samples;\r
     rtp.SetTimestamp(m_timeStamp);\r