Made sure RTP timestamp, ssrc and marker bit are transferred from FS to OPAL structure.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11303 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Robert Joly 2009-01-20 00:49:48 +00:00
parent 9be214b223
commit 61ee313191
1 changed files with 3 additions and 0 deletions

View File

@ -1229,6 +1229,9 @@ switch_status_t FSMediaStream::write_frame(const switch_frame_t *frame, switch_i
RTP_DataFrame rtp;
rtp.SetPayloadType(mediaFormat.GetPayloadType());
rtp.SetPayloadSize(frame->datalen);
rtp.SetTimestamp(frame->timestamp);
rtp.SetSyncSource(frame->ssrc);
rtp.SetMarker(frame->m);
memcpy(rtp.GetPayloadPtr(), frame->data, frame->datalen);
if (GetPatch()->PushFrame(rtp))
return SWITCH_STATUS_SUCCESS;