⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 287067 in webkit


Ignore:
Timestamp:
Dec 15, 2021, 1:36:17 AM (5 years ago)
Author:
youenn@apple.com
Message:

Make sure to start a realtime outgoing source in case it is taken to another sender
https://bugs.webkit.org/show_bug.cgi?id=234296
<rdar://86276497>

Reviewed by Eric Carlson.

Source/WebCore:

We are asynchronously starting libwebrtc sources.
When a sender is created first and is assigned a source later, we take the source and assign it to the sender.
In that case, the source might not be started and we will not send any data.

Test: webrtc/addTransceiver-then-addTrack.html

  • Modules/mediastream/libwebrtc/LibWebRTCRtpSenderBackend.cpp:

LayoutTests:

  • webrtc/addTransceiver-then-addTrack-expected.txt: Added.
  • webrtc/addTransceiver-then-addTrack.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r287063 r287067  
     12021-12-15  Youenn Fablet  <youenn@apple.com>
     2
     3        Make sure to start a realtime outgoing source in case it is taken to another sender
     4        https://bugs.webkit.org/show_bug.cgi?id=234296
     5        <rdar://86276497>
     6
     7        Reviewed by Eric Carlson.
     8
     9        * webrtc/addTransceiver-then-addTrack-expected.txt: Added.
     10        * webrtc/addTransceiver-then-addTrack.html: Added.
     11
    1122021-12-14  Joonghun Park  <jh718.park@samsung.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r287066 r287067  
     12021-12-15  Youenn Fablet  <youenn@apple.com>
     2
     3        Make sure to start a realtime outgoing source in case it is taken to another sender
     4        https://bugs.webkit.org/show_bug.cgi?id=234296
     5        <rdar://86276497>
     6
     7        Reviewed by Eric Carlson.
     8
     9        We are asynchronously starting libwebrtc sources.
     10        When a sender is created first and is assigned a source later, we take the source and assign it to the sender.
     11        In that case, the source might not be started and we will not send any data.
     12
     13        Test: webrtc/addTransceiver-then-addTrack.html
     14
     15        * Modules/mediastream/libwebrtc/LibWebRTCRtpSenderBackend.cpp:
     16
    1172021-12-15  Antoine Quint  <graouts@webkit.org>
    218
  • trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCRtpSenderBackend.cpp

    r284057 r287067  
    191191{
    192192    stopSource();
    193     m_source = WTFMove(source);
     193    m_source = std::exchange(source, nullptr);
    194194    startSource();
    195195}
     
    198198{
    199199    ASSERT(backend.hasSource());
    200     stopSource();
    201     m_source = WTFMove(backend.m_source);
    202     backend.m_source = nullptr;
     200    setSource(WTFMove(backend.m_source));
    203201}
    204202
Note: See TracChangeset for help on using the changeset viewer.