Changeset 208139 in webkit


Ignore:
Timestamp:
Oct 31, 2016 12:53:30 AM (7 years ago)
Author:
Philippe Normand
Message:

[OpenWebRTC] Initialize library one time only
https://bugs.webkit.org/show_bug.cgi?id=164118

Reviewed by Darin Adler.

  • platform/mediastream/openwebrtc/OpenWebRTCUtilities.cpp:

(WebCore::initializeOpenWebRTC): Prevent multiple initialisations of the library.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r208137 r208139  
     12016-10-28  Philippe Normand  <pnormand@igalia.com>
     2
     3        [OpenWebRTC] Initialize library one time only
     4        https://bugs.webkit.org/show_bug.cgi?id=164118
     5
     6        Reviewed by Darin Adler.
     7
     8        * platform/mediastream/openwebrtc/OpenWebRTCUtilities.cpp:
     9        (WebCore::initializeOpenWebRTC): Prevent multiple initialisations of the library.
     10
    1112016-10-30  Brent Fulgham  <bfulgham@apple.com>
    212
  • trunk/Source/WebCore/platform/mediastream/openwebrtc/OpenWebRTCUtilities.cpp

    r183388 r208139  
    4545void initializeOpenWebRTC()
    4646{
     47    static bool isInitialized = false;
     48    if (isInitialized)
     49        return;
     50
    4751    owr_init(g_main_context_default());
     52    isInitialized = true;
    4853}
    4954
Note: See TracChangeset for help on using the changeset viewer.