mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[fix] move channels initialization into GetRemoteCapabilities()
This commit is contained in:
@@ -69,7 +69,6 @@ int IceTransport::InitIceTransmission(
|
||||
turn_password);
|
||||
|
||||
InitializeIOStatistics();
|
||||
InitializeChannels(video_codec_payload_type);
|
||||
|
||||
ice_agent_->CreateIceAgent(
|
||||
[](NiceAgent *agent, guint stream_id, guint component_id,
|
||||
@@ -743,6 +742,8 @@ std::string IceTransport::GetRemoteCapabilities(const std::string &remote_sdp) {
|
||||
return std::string();
|
||||
}
|
||||
|
||||
InitializeChannels(negotiated_video_pt_);
|
||||
|
||||
CreateVideoCodec(negotiated_video_pt_, hardware_acceleration_);
|
||||
CreateAudioCodec();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user