mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[fix] fix unused variables and type conversions
This commit is contained in:
@@ -112,7 +112,7 @@ DLLAPI int SendVideoFrame(PeerPtr *peer_ptr, const XVideoFrame *video_frame) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
peer_ptr->peer_connection->SendVideoData(video_frame);
|
||||
peer_ptr->peer_connection->SendVideoFrame(video_frame);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -128,12 +128,12 @@ DLLAPI int SendAudioFrame(PeerPtr *peer_ptr, const char *data, size_t size) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
peer_ptr->peer_connection->SendAudioData(data, size);
|
||||
peer_ptr->peer_connection->SendAudioFrame(data, size);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int SendData(PeerPtr *peer_ptr, const char *data, size_t size) {
|
||||
int SendDataFrame(PeerPtr *peer_ptr, const char *data, size_t size) {
|
||||
if (!peer_ptr) {
|
||||
LOG_ERROR("peer_ptr not created");
|
||||
return -1;
|
||||
@@ -144,7 +144,7 @@ int SendData(PeerPtr *peer_ptr, const char *data, size_t size) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
peer_ptr->peer_connection->SendUserData(data, size);
|
||||
peer_ptr->peer_connection->SendDataFrame(data, size);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user