Forráskód Böngészése

Removed warning when adding track without media support

Paul-Louis Ageneau 4 éve
szülő
commit
f154f3cced
1 módosított fájl, 0 hozzáadás és 6 törlés
  1. 0 6
      src/peerconnection.cpp

+ 0 - 6
src/peerconnection.cpp

@@ -313,12 +313,6 @@ void PeerConnection::onSignalingStateChange(std::function<void(SignalingState st
 }
 
 std::shared_ptr<Track> PeerConnection::addTrack(Description::Media description) {
-#if !RTC_ENABLE_MEDIA
-	if (mTracks.empty()) {
-		PLOG_WARNING << "Tracks will be inative (not compiled with media support)";
-	}
-#endif
-
 	auto trackImpl = impl()->emplaceTrack(std::move(description));
 
 	// Renegotiation is needed for the new or updated track