$OpenBSD$ index 1d96cb4..847085c 100644 --- media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.h.orig Fri Feb 20 15:40:37 2015 +++ media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.h Fri Feb 20 15:40:37 2015 @@ -187,6 +187,12 @@ class RTCStatsQuery { nsresult res = CheckApiState(assert_ice_ready); \ if (NS_FAILED(res)) return res; \ } while(0) +#define PC_AUTO_ENTER_API_CALL_VOID_RETURN(assert_ice_ready) \ + do { \ + /* do/while prevents res from conflicting with locals */ \ + nsresult res = CheckApiState(assert_ice_ready); \ + if (NS_FAILED(res)) return; \ + } while(0) #define PC_AUTO_ENTER_API_CALL_NO_CHECK() CheckThread() class PeerConnectionImpl MOZ_FINAL : public nsISupports, @@ -565,12 +571,6 @@ private: // Shut down media - called on main thread only void ShutdownMedia(); - // ICE callbacks run on the right thread. - nsresult IceConnectionStateChange_m( - mozilla::dom::PCImplIceConnectionState aState); - nsresult IceGatheringStateChange_m( - mozilla::dom::PCImplIceGatheringState aState); - NS_IMETHOD FingerprintSplitHelper( std::string& fingerprint, size_t& spaceIdx) const;