Prechádzať zdrojové kódy

Fixed SRTP not wrapping outbound packets in DTLS

Staz M 5 rokov pred
rodič
commit
3f5eecb2e0
2 zmenil súbory, kde vykonal 9 pridanie a 2 odobranie
  1. 8 0
      include/rtc/rtp.hpp
  2. 1 2
      src/dtlssrtptransport.cpp

+ 8 - 0
include/rtc/rtp.hpp

@@ -0,0 +1,8 @@
+//
+// Created by staz on 8/12/20.
+//
+
+#ifndef WEBRTC_SERVER_RTP_HPP
+#define WEBRTC_SERVER_RTP_HPP
+
+#endif //WEBRTC_SERVER_RTP_HPP

+ 1 - 2
src/dtlssrtptransport.cpp

@@ -112,8 +112,7 @@ bool DtlsSrtpTransport::sendMedia(message_ptr message) {
 	}
 	}
 
 
 	message->resize(size);
 	message->resize(size);
-	outgoing(message);
-	return true;
+	return DtlsTransport::send(message);
 }
 }
 
 
 void DtlsSrtpTransport::incoming(message_ptr message) {
 void DtlsSrtpTransport::incoming(message_ptr message) {