mirror of
https://git.freebsd.org/ports.git
synced 2025-06-20 12:10:31 -04:00
When accessing video capture devices warnings like below are emitted [2]: [40533:463527936:0420/214650.072475:ERROR:create_video_capture_device_factory.cc(58)] Not implemented reached in std::unique_ptr<VideoCaptureDeviceFactory> media::(anonymous namespace)::CreatePlatformSpecificVideoCaptureDeviceFactory(scoped_refptr<base::SingleThreadTaskRunner>) Also websites that want to access the camera, microphone, etc. exhibit broken behavior, e.g. no dialogs to permit access on the desired capture devices come up. [1] Thus add the related patches from www/chromium [2] that enable support for video capture devices and explicitly activate the WebRTC feature. [1] PR: 236915 [1], 237423 [2] Submitted by: cmt [2] Reported by: thea20lineisameme@protonmail.com [1] Reviewed by: rakuco, tcberner (kde), Lorenzo Salvadore Approved by: tcberner (kde) Differential Revision: https://reviews.freebsd.org/D19900
98 lines
4.8 KiB
Text
98 lines
4.8 KiB
Text
--- src/3rdparty/chromium/base/strings/safe_sprintf_unittest.cc.orig 2018-11-13 18:25:11 UTC
|
|
+++ src/3rdparty/chromium/base/strings/safe_sprintf_unittest.cc
|
|
@@ -730,6 +730,7 @@ TEST(SafeSPrintfTest, EmbeddedNul) {
|
|
}
|
|
|
|
TEST(SafeSPrintfTest, EmitNULL) {
|
|
+/* Avoid compiler error: http://pastebin.com/1edWUE84
|
|
char buf[40];
|
|
#if defined(__GNUC__)
|
|
#pragma GCC diagnostic push
|
|
@@ -741,6 +742,7 @@ TEST(SafeSPrintfTest, EmitNULL) {
|
|
EXPECT_EQ("0x0", std::string(buf));
|
|
EXPECT_EQ(6, SafeSPrintf(buf, "%s", NULL));
|
|
EXPECT_EQ("<NULL>", std::string(buf));
|
|
+*/
|
|
#if defined(__GCC__)
|
|
#pragma GCC diagnostic pop
|
|
#endif
|
|
--- src/3rdparty/chromium/base/threading/thread_local_storage_unittest.cc.orig 2018-11-13 18:25:11 UTC
|
|
+++ src/3rdparty/chromium/base/threading/thread_local_storage_unittest.cc
|
|
@@ -86,7 +86,7 @@ class ThreadLocalStorageRunner : public DelegateSimple
|
|
void ThreadLocalStorageCleanup(void *value) {
|
|
int *ptr = reinterpret_cast<int*>(value);
|
|
// Destructors should never be called with a NULL.
|
|
- ASSERT_NE(reinterpret_cast<int*>(NULL), ptr);
|
|
+ ASSERT_NE(static_cast<int*>(NULL), ptr);
|
|
if (*ptr == kFinalTlsValue)
|
|
return; // We've been called enough times.
|
|
ASSERT_LT(kFinalTlsValue, *ptr);
|
|
--- src/3rdparty/chromium/media/audio/audio_output_proxy_unittest.cc.orig 2018-11-13 18:25:11 UTC
|
|
+++ src/3rdparty/chromium/media/audio/audio_output_proxy_unittest.cc
|
|
@@ -410,7 +410,7 @@ class AudioOutputProxyTest : public testing::Test {
|
|
// |stream| is closed at this point. Start() should reopen it again.
|
|
EXPECT_CALL(manager(), MakeAudioOutputStream(_, _, _))
|
|
.Times(2)
|
|
- .WillRepeatedly(Return(reinterpret_cast<AudioOutputStream*>(NULL)));
|
|
+ .WillRepeatedly(Return(static_cast<AudioOutputStream*>(NULL)));
|
|
|
|
EXPECT_CALL(callback_, OnError()).Times(2);
|
|
|
|
--- src/3rdparty/chromium/third_party/libjingle_xmpp/task_runner/taskrunner.cc.orig 2019-03-07 09:23:57 UTC
|
|
+++ src/3rdparty/chromium/third_party/libjingle_xmpp/task_runner/taskrunner.cc
|
|
@@ -95,7 +95,7 @@ void TaskRunner::InternalRunTasks(bool in_destructor)
|
|
std::vector<Task *>::iterator it;
|
|
it = std::remove(tasks_.begin(),
|
|
tasks_.end(),
|
|
- reinterpret_cast<Task *>(NULL));
|
|
+ static_cast<Task *>(NULL));
|
|
|
|
tasks_.erase(it, tasks_.end());
|
|
|
|
--- src/3rdparty/chromium/third_party/sfntly/src/cpp/src/sfntly/table/core/cmap_table.cc.orig 2018-11-13 18:25:11 UTC
|
|
+++ src/3rdparty/chromium/third_party/sfntly/src/cpp/src/sfntly/table/core/cmap_table.cc
|
|
@@ -439,7 +439,7 @@ CMapTable::CMapFormat0::Builder::Builder(
|
|
}
|
|
|
|
CMapTable::CMapFormat0::Builder::Builder(const CMapId& cmap_id)
|
|
- : CMap::Builder(reinterpret_cast<ReadableFontData*>(NULL),
|
|
+ : CMap::Builder(static_cast<ReadableFontData*>(NULL),
|
|
CMapFormat::kFormat0,
|
|
cmap_id) {
|
|
}
|
|
@@ -563,7 +563,7 @@ CMapTable::CMapFormat2::Builder::Builder(WritableFontD
|
|
: CMapTable::CMap::Builder(data ? down_cast<WritableFontData*>(
|
|
data->Slice(offset, data->ReadUShort(
|
|
offset + Offset::kFormat0Length)))
|
|
- : reinterpret_cast<WritableFontData*>(NULL),
|
|
+ : static_cast<WritableFontData*>(NULL),
|
|
CMapFormat::kFormat2, cmap_id) {
|
|
// TODO(arthurhsu): FIXIT: heavy lifting and leak, need fix.
|
|
}
|
|
@@ -574,7 +574,7 @@ CMapTable::CMapFormat2::Builder::Builder(ReadableFontD
|
|
: CMapTable::CMap::Builder(data ? down_cast<ReadableFontData*>(
|
|
data->Slice(offset, data->ReadUShort(
|
|
offset + Offset::kFormat0Length)))
|
|
- : reinterpret_cast<ReadableFontData*>(NULL),
|
|
+ : static_cast<ReadableFontData*>(NULL),
|
|
CMapFormat::kFormat2, cmap_id) {
|
|
// TODO(arthurhsu): FIXIT: heavy lifting and leak, need fix.
|
|
}
|
|
@@ -958,7 +958,7 @@ CMapTable::CMapFormat4::Builder::Builder(WritableFontD
|
|
CMapTable::CMapFormat4::Builder::Builder(SegmentList* segments,
|
|
std::vector<int32_t>* glyph_id_array,
|
|
const CMapId& cmap_id)
|
|
- : CMap::Builder(reinterpret_cast<ReadableFontData*>(NULL),
|
|
+ : CMap::Builder(static_cast<ReadableFontData*>(NULL),
|
|
CMapFormat::kFormat4, cmap_id),
|
|
segments_(segments->begin(), segments->end()),
|
|
glyph_id_array_(glyph_id_array->begin(), glyph_id_array->end()) {
|
|
@@ -966,7 +966,7 @@ CMapTable::CMapFormat4::Builder::Builder(SegmentList*
|
|
}
|
|
|
|
CMapTable::CMapFormat4::Builder::Builder(const CMapId& cmap_id)
|
|
- : CMap::Builder(reinterpret_cast<ReadableFontData*>(NULL),
|
|
+ : CMap::Builder(static_cast<ReadableFontData*>(NULL),
|
|
CMapFormat::kFormat4, cmap_id) {
|
|
}
|
|
|