summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/tg_owt-10.12-sdk.patch
blob: a9adf5737a55c4656dfc484056e9df6698a9e9ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
diff --git a/src/rtc_base/system/gcd_helpers.m b/src/rtc_base/system/gcd_helpers.m
index fd9a361f..3a63be6d 100644
--- a/src/rtc_base/system/gcd_helpers.m
+++ b/src/rtc_base/system/gcd_helpers.m
@@ -13,9 +13,6 @@
 dispatch_queue_t RTCDispatchQueueCreateWithTarget(const char *label,
                                                   dispatch_queue_attr_t attr,
                                                   dispatch_queue_t target) {
-  if (@available(iOS 10, macOS 10.12, tvOS 10, watchOS 3, *)) {
-    return dispatch_queue_create_with_target(label, attr, target);
-  }
   dispatch_queue_t queue = dispatch_queue_create(label, attr);
   dispatch_set_target_queue(queue, target);
   return queue;
diff --git a/src/sdk/objc/components/video_codec/nalu_rewriter.cc b/src/sdk/objc/components/video_codec/nalu_rewriter.cc
index 61c1e7d6..b19f3f91 100644
--- a/src/sdk/objc/components/video_codec/nalu_rewriter.cc
+++ b/src/sdk/objc/components/video_codec/nalu_rewriter.cc
@@ -245,10 +245,7 @@ bool H265CMSampleBufferToAnnexBBuffer(
   int nalu_header_size = 0;
   size_t param_set_count = 0;
   OSStatus status = noErr;
-  if (__builtin_available(macOS 10.13, *)) {
-    status = CMVideoFormatDescriptionGetHEVCParameterSetAtIndex(
-        description, 0, nullptr, nullptr, &param_set_count, &nalu_header_size);
-  } else {
+  {
     RTC_LOG(LS_ERROR) << "Not supported.";
     return false;
   }
@@ -271,10 +268,7 @@ bool H265CMSampleBufferToAnnexBBuffer(
     size_t param_set_size = 0;
     const uint8_t* param_set = nullptr;
     for (size_t i = 0; i < param_set_count; ++i) {
-      if (__builtin_available(macOS 10.13, *)) {
-        status = CMVideoFormatDescriptionGetHEVCParameterSetAtIndex(
-            description, i, &param_set, &param_set_size, nullptr, nullptr);
-      } else {
+      {
         RTC_LOG(LS_ERROR) << "Not supported.";
         return false;
       }
@@ -514,11 +508,7 @@ CMVideoFormatDescriptionRef CreateH265VideoFormatDescription(
   // Parse the SPS and PPS into a CMVideoFormatDescription.
   CMVideoFormatDescriptionRef description = nullptr;
   OSStatus status = noErr;
-  if (__builtin_available(macOS 10.13, *)) {
-    status = CMVideoFormatDescriptionCreateFromHEVCParameterSets(
-        kCFAllocatorDefault, 3, param_set_ptrs, param_set_sizes, 4, nullptr,
-        &description);
-  } else {
+  {
     RTC_LOG(LS_ERROR) << "Not supported.";
     return nullptr;
   }