Skip to content

Commit 9533cba

Browse files
caneraltinbasakotavio
authored andcommitted
chromium: fix v4l2 compiler warning error on arm
fixes: ../../media/gpu/v4l2/legacy/v4l2_video_decoder_backend_stateful.cc:450:20: error: non-constant-expression cannot be narrowed from type '__suseconds64_t' (aka 'long long') to 'long' in initializer list [-Wc++11-narrowing]
1 parent 995c4da commit 9533cba

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

meta-chromium/recipes-browser/chromium/chromium-gn.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ SRC_URI += "\
3535
file://0018-third_party-node-update_node_binaries-Update-nodejs-.patch \
3636
file://0019-Reduce-minimum-browser-window-width-to-480px.patch \
3737
file://0020-rust-filter-out-arm-specific-flags-from-rust-compile.patch \
38+
file://0021-chromium-fix-v4l2-compiler-error-on-arm.patch \
3839
"
3940

4041
# Missing third_party sources.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
From 568dd0026ac86878bf6f0c99ac837a964525860f Mon Sep 17 00:00:00 2001
2+
From: Caner Altinbasak <[email protected]>
3+
Date: Sat, 26 Jul 2025 12:47:57 +0100
4+
Subject: [PATCH] chromium: fix v4l2 compiler error on arm
5+
6+
fixes:
7+
../../media/gpu/v4l2/legacy/v4l2_video_decoder_backend_stateful.cc:450:20:
8+
error: non-constant-expression cannot be narrowed from type '__suseconds64_t'
9+
(aka 'long long') to 'long' in initializer list [-Wc++11-narrowing]
10+
11+
Upstream-Status: Inappropriate [specific to our build setup]
12+
---
13+
media/gpu/v4l2/legacy/v4l2_video_decoder_backend_stateful.cc | 2 +-
14+
1 file changed, 1 insertion(+), 1 deletion(-)
15+
16+
diff --git a/media/gpu/v4l2/legacy/v4l2_video_decoder_backend_stateful.cc b/media/gpu/v4l2/legacy/v4l2_video_decoder_backend_stateful.cc
17+
index b77f2b08d7..9069b97c02 100644
18+
--- a/media/gpu/v4l2/legacy/v4l2_video_decoder_backend_stateful.cc
19+
+++ b/media/gpu/v4l2/legacy/v4l2_video_decoder_backend_stateful.cc
20+
@@ -447,7 +447,7 @@ void V4L2StatefulVideoDecoderBackend::OnOutputBufferDequeued(
21+
const struct timeval timeval = buffer->GetTimeStamp();
22+
const struct timespec timespec = {
23+
.tv_sec = timeval.tv_sec,
24+
- .tv_nsec = timeval.tv_usec * 1000,
25+
+ .tv_nsec = static_cast<long>(timeval.tv_usec * 1000),
26+
};
27+
28+
const int64_t flat_timespec =
29+
--
30+
2.39.5
31+

0 commit comments

Comments
 (0)