mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
svt_av1: fix patch
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 5b7ef6aeba12650f983e0f609939aeeb3cb07877 Mon Sep 17 00:00:00 2001
|
||||
From 14fab4b1f5f53967c4f5cee63520936f98bec022 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Thu, 14 Jan 2021 18:29:12 +0100
|
||||
Subject: Haiku patch
|
||||
@@ -18,7 +18,7 @@ index e5f3351..64f1d76 100644
|
||||
endif()
|
||||
endif()
|
||||
diff --git a/Source/Lib/Common/Codec/EbThreads.c b/Source/Lib/Common/Codec/EbThreads.c
|
||||
index 25619f3..658f15c 100644
|
||||
index 25619f3..f9c96a5 100644
|
||||
--- a/Source/Lib/Common/Codec/EbThreads.c
|
||||
+++ b/Source/Lib/Common/Codec/EbThreads.c
|
||||
@@ -84,11 +84,15 @@ EbHandle svt_create_thread(void *thread_function(void *), void *thread_context)
|
||||
@@ -32,7 +32,7 @@ index 25619f3..658f15c 100644
|
||||
struct sched_param param = {.sched_priority = 99};
|
||||
pthread_attr_setschedparam(&attr, ¶m);
|
||||
+#else
|
||||
+ pthread_attr_setstacksize(&attr, 256 * B_PAGE_SIZE);
|
||||
+ pthread_attr_setstacksize(&attr, 256 * PAGESIZE);
|
||||
+#endif
|
||||
|
||||
ret = pthread_create(th, &attr, thread_function, thread_context);
|
||||
|
||||
Reference in New Issue
Block a user