Changeset 216912 in webkit


Ignore:
Timestamp:
May 16, 2017 12:11:56 AM (7 years ago)
Author:
pvollan@apple.com
Message:

Compile error, include file is not found.
https://bugs.webkit.org/show_bug.cgi?id=172105

Reviewed by Brent Fulgham.

Use has_include to detect if include file exists.

  • platform/mediastream/libwebrtc/H264VideoToolBoxEncoder.mm:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r216903 r216912  
     12017-05-16  Per Arne Vollan  <pvollan@apple.com>
     2
     3        Compile error, include file is not found.
     4        https://bugs.webkit.org/show_bug.cgi?id=172105
     5
     6        Reviewed by Brent Fulgham.
     7
     8        Use __has_include to detect if include file exists.
     9
     10        * platform/mediastream/libwebrtc/H264VideoToolBoxEncoder.mm:
     11
    1122017-05-15  Andy Estes  <aestes@apple.com>
    213
  • trunk/Source/WebCore/platform/mediastream/libwebrtc/H264VideoToolBoxEncoder.mm

    r215548 r216912  
    2929#if USE(LIBWEBRTC) && PLATFORM(COCOA)
    3030
    31 #if ENABLE(MAC_VIDEO_TOOLBOX)
     31#if ENABLE(MAC_VIDEO_TOOLBOX) && USE(APPLE_INTERNAL_SDK) && __has_include(<WebKitAdditions/VideoToolBoxEncoderMac.mm>)
    3232#import <WebKitAdditions/VideoToolBoxEncoderMac.mm>
    33 #endif
     33#else
    3434
    3535namespace WebCore {
    3636
    37 #if !ENABLE(MAC_VIDEO_TOOLBOX)
    3837int H264VideoToolboxEncoder::CreateCompressionSession(VTCompressionSessionRef& compressionSession, VTCompressionOutputCallback outputCallback, int32_t width, int32_t height)
    3938{
    4039    return webrtc::H264VideoToolboxEncoder::CreateCompressionSession(compressionSession, outputCallback, width, height);
    4140}
     41   
     42}
    4243#endif
    4344
    44 }
    45 
    4645#endif
Note: See TracChangeset for help on using the changeset viewer.