mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
www/chromium: fix MP4 video playback
PR: 255561 Reported by: patovm04@gmail.com
This commit is contained in:
parent
4d2d01b0d5
commit
2bc6cc38f2
3 changed files with 28 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
PORTNAME= chromium
|
PORTNAME= chromium
|
||||||
PORTVERSION= 98.0.4758.102
|
PORTVERSION= 98.0.4758.102
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= www
|
CATEGORIES= www
|
||||||
MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ \
|
MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ \
|
||||||
LOCAL/rene/chromium/:fonts
|
LOCAL/rene/chromium/:fonts
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
--- base/allocator/partition_allocator/page_allocator.h.orig 2022-02-23 16:08:07 UTC
|
||||||
|
+++ base/allocator/partition_allocator/page_allocator.h
|
||||||
|
@@ -170,7 +170,7 @@ BASE_EXPORT void DecommitAndZeroSystemPages(void* addr
|
||||||
|
// Whether decommitted memory is guaranteed to be zeroed when it is
|
||||||
|
// recommitted. Do not assume that this will not change over time.
|
||||||
|
constexpr BASE_EXPORT bool DecommittedMemoryIsAlwaysZeroed() {
|
||||||
|
-#if defined(OS_APPLE)
|
||||||
|
+#if defined(OS_APPLE) || defined(OS_BSD)
|
||||||
|
return false;
|
||||||
|
#else
|
||||||
|
return true;
|
|
@ -0,0 +1,16 @@
|
||||||
|
--- base/allocator/partition_allocator/page_allocator_internals_posix.h.orig 2022-02-23 16:08:07 UTC
|
||||||
|
+++ base/allocator/partition_allocator/page_allocator_internals_posix.h
|
||||||
|
@@ -339,8 +339,12 @@ bool TryRecommitSystemPagesInternal(
|
||||||
|
}
|
||||||
|
|
||||||
|
void DiscardSystemPagesInternal(void* address, size_t length) {
|
||||||
|
-#if defined(OS_APPLE)
|
||||||
|
+#if defined(OS_APPLE) || defined(OS_BSD)
|
||||||
|
+#if defined(OS_BSD)
|
||||||
|
+ int ret = madvise(address, length, MADV_FREE);
|
||||||
|
+#else
|
||||||
|
int ret = madvise(address, length, MADV_FREE_REUSABLE);
|
||||||
|
+#endif
|
||||||
|
if (ret) {
|
||||||
|
// MADV_FREE_REUSABLE sometimes fails, so fall back to MADV_DONTNEED.
|
||||||
|
ret = madvise(address, length, MADV_DONTNEED);
|
Loading…
Add table
Reference in a new issue