提交 61ee3131 authored 作者: Robert Joly's avatar Robert Joly

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
上级 9be214b2
......@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论