Changeset 214043 in webkit
- Timestamp:
- Mar 16, 2017 8:23:00 AM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r214042 r214043 1 2017-03-16 Youenn Fablet <youenn@apple.com> 2 3 LibWebRTC outgoing source should be thread safe refcounted 4 https://bugs.webkit.org/show_bug.cgi?id=169726 5 6 Reviewed by Alex Christensen. 7 8 Preventive fix. 9 Also fixing the size of the buffer for the audio source as its reserved size is byte count. 10 11 * platform/mediastream/mac/RealtimeOutgoingAudioSource.h: 12 * platform/mediastream/mac/RealtimeOutgoingVideoSource.h: 13 1 14 2017-03-16 Youenn Fablet <youenn@apple.com> 2 15 -
trunk/Source/WebCore/platform/mediastream/mac/RealtimeOutgoingAudioSource.h
r213080 r214043 35 35 #include "RealtimeMediaSource.h" 36 36 #include <webrtc/api/mediastreaminterface.h> 37 #include <wtf/ThreadSafeRefCounted.h> 37 38 38 39 namespace webrtc { … … 43 44 namespace WebCore { 44 45 45 class RealtimeOutgoingAudioSource final : public RefCounted<RealtimeOutgoingAudioSource>, public webrtc::AudioSourceInterface, private RealtimeMediaSource::Observer {46 class RealtimeOutgoingAudioSource final : public ThreadSafeRefCounted<RealtimeOutgoingAudioSource>, public webrtc::AudioSourceInterface, private RealtimeMediaSource::Observer { 46 47 public: 47 48 static Ref<RealtimeOutgoingAudioSource> create(Ref<RealtimeMediaSource>&& audioSource) { return adoptRef(*new RealtimeOutgoingAudioSource(WTFMove(audioSource))); } … … 77 78 CAAudioStreamDescription m_outputStreamDescription; 78 79 79 Vector<uint 16_t> m_audioBuffer;80 Vector<uint8_t> m_audioBuffer; 80 81 uint64_t m_startFrame { 0 }; 81 82 bool m_muted { false }; -
trunk/Source/WebCore/platform/mediastream/mac/RealtimeOutgoingVideoSource.h
r213066 r214043 37 37 #include <webrtc/common_video/include/i420_buffer_pool.h> 38 38 #include <webrtc/media/base/videosinkinterface.h> 39 #include <wtf/ThreadSafeRefCounted.h> 39 40 40 41 namespace WebCore { 41 42 42 class RealtimeOutgoingVideoSource final : public RefCounted<RealtimeOutgoingVideoSource>, public webrtc::VideoTrackSourceInterface, private RealtimeMediaSource::Observer {43 class RealtimeOutgoingVideoSource final : public ThreadSafeRefCounted<RealtimeOutgoingVideoSource>, public webrtc::VideoTrackSourceInterface, private RealtimeMediaSource::Observer { 43 44 public: 44 45 static Ref<RealtimeOutgoingVideoSource> create(Ref<RealtimeMediaSource>&& videoSource) { return adoptRef(*new RealtimeOutgoingVideoSource(WTFMove(videoSource))); }
Note: See TracChangeset
for help on using the changeset viewer.