Title: [259381] trunk/Source/ThirdParty/libwebrtc
Revision
259381
Author
zandober...@gmail.com
Date
2020-04-02 03:09:02 -0700 (Thu, 02 Apr 2020)

Log Message

Unreviewed, fix libwebrtc build with GCC 9 after the M82 bump.

GCC 9 fails to process the FrameGeneratorCapturerConfig::ImageSlides::Crop
class, throwing an error due to the default member initializer for the
`scroll_duration` member being required before the end of the
encapsulating FrameGeneratorCapturerConfig::ImageSlides class.

This can be avoided by default-initializing the
FrameGeneratorCapturerConfig::ImageSlides::Crop member variable instead
of specific members of that class.

Similar fix will be pushed to the upstream repository.

* Source/webrtc/test/frame_generator_capturer.h:

Modified Paths

Diff

Modified: trunk/Source/ThirdParty/libwebrtc/ChangeLog (259380 => 259381)


--- trunk/Source/ThirdParty/libwebrtc/ChangeLog	2020-04-02 08:45:33 UTC (rev 259380)
+++ trunk/Source/ThirdParty/libwebrtc/ChangeLog	2020-04-02 10:09:02 UTC (rev 259381)
@@ -1,3 +1,20 @@
+2020-04-02  Zan Dobersek  <zdober...@igalia.com>
+
+        Unreviewed, fix libwebrtc build with GCC 9 after the M82 bump.
+
+        GCC 9 fails to process the FrameGeneratorCapturerConfig::ImageSlides::Crop
+        class, throwing an error due to the default member initializer for the
+        `scroll_duration` member being required before the end of the
+        encapsulating FrameGeneratorCapturerConfig::ImageSlides class.
+
+        This can be avoided by default-initializing the
+        FrameGeneratorCapturerConfig::ImageSlides::Crop member variable instead
+        of specific members of that class.
+
+        Similar fix will be pushed to the upstream repository.
+
+        * Source/webrtc/test/frame_generator_capturer.h:
+
 2020-04-01  youenn fablet  <you...@apple.com> and Victor M. Jaquez <vjaq...@igalia.com>
 
         Bump libwebrtc to M82

Modified: trunk/Source/ThirdParty/libwebrtc/Source/webrtc/test/frame_generator_capturer.h (259380 => 259381)


--- trunk/Source/ThirdParty/libwebrtc/Source/webrtc/test/frame_generator_capturer.h	2020-04-02 08:45:33 UTC (rev 259380)
+++ trunk/Source/ThirdParty/libwebrtc/Source/webrtc/test/frame_generator_capturer.h	2020-04-02 10:09:02 UTC (rev 259381)
@@ -66,10 +66,10 @@
     int framerate = 30;
     TimeDelta change_interval = TimeDelta::Seconds(10);
     struct Crop {
-      TimeDelta scroll_duration = TimeDelta::Seconds(0);
+      TimeDelta scroll_duration;
       absl::optional<int> width;
       absl::optional<int> height;
-    } crop;
+    } crop = { TimeDelta::Seconds(0), { }, { } };
     int width = 1850;
     int height = 1110;
     std::vector<std::string> paths = {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to