#define PRODUCT_NAME "Gecko"
#define STARFISH_NAME "Starfish"
#define VENDOR_NAME "Samsung Electronics Co., Ltd."
-#define VERSION "1.0.0/" "200603_af07c17"
+#define VERSION "1.0.0/" "200609_55956d4"
#define USER_AGENT(STARFISH_NAME, VERSION) \
"Mozilla/5.0 (like Gecko/54.0 Firefox/54.0) " STARFISH_NAME "/" VERSION
#define USER_AGENT_MAXIMUM_DATE_VALUE 8.64e15
bool hasValidSdpMid = false;
if (init.m_sdpMid.hasValue()) {
- size_t lineIndex;
+ size_t lineIndex = 0;
size_t mediaSectionSize = remoteDescription->number_of_mediasections();
for (size_t i = 0; i < mediaSectionSize; i++) {
const webrtc::IceCandidateCollection* candidateCollection =
m_backend->RemoveTrackNew(sender->backend());
aliveSender->setTrack(nullptr);
+ if (!existingTransceiver) {
+ STARFISH_LOG_ERROR("%s: Transceiver not exist\n", __func__);
+ return;
+ }
+
if (existingTransceiver->direction() ==
RTCRtpTransceiverDirection::Sendrecv) {
existingTransceiver->setDirection(RTCRtpTransceiverDirection::Recvonly);
- }
- if (existingTransceiver->direction() ==
- RTCRtpTransceiverDirection::Sendonly) {
+ } else if (existingTransceiver->direction() ==
+ RTCRtpTransceiverDirection::Sendonly) {
existingTransceiver->setDirection(RTCRtpTransceiverDirection::Inactive);
}
}