Title: [288091] trunk/Source/WebCore
Revision
288091
Author
[email protected]
Date
2022-01-17 01:29:06 -0800 (Mon, 17 Jan 2022)

Log Message

[Debug][GStreamer] Crash in fast/mediastream/get-display-media-settings.html
https://bugs.webkit.org/show_bug.cgi?id=235221

Patch by Philippe Normand <[email protected]> on 2022-01-17
Reviewed by Xabier Rodriguez-Calvar.

Fix use-after-move issue in MockDisplayCaptureSourceGStreamer. The hashSalt string was moved
to the wrapped mock video source, and then again as a parent class constructor parameter.

* platform/mediastream/gstreamer/MockRealtimeVideoSourceGStreamer.cpp:
(WebCore::MockDisplayCaptureSourceGStreamer::create):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (288090 => 288091)


--- trunk/Source/WebCore/ChangeLog	2022-01-17 08:21:24 UTC (rev 288090)
+++ trunk/Source/WebCore/ChangeLog	2022-01-17 09:29:06 UTC (rev 288091)
@@ -1,3 +1,16 @@
+2022-01-17  Philippe Normand  <[email protected]>
+
+        [Debug][GStreamer] Crash in fast/mediastream/get-display-media-settings.html
+        https://bugs.webkit.org/show_bug.cgi?id=235221
+
+        Reviewed by Xabier Rodriguez-Calvar.
+
+        Fix use-after-move issue in MockDisplayCaptureSourceGStreamer. The hashSalt string was moved
+        to the wrapped mock video source, and then again as a parent class constructor parameter.
+
+        * platform/mediastream/gstreamer/MockRealtimeVideoSourceGStreamer.cpp:
+        (WebCore::MockDisplayCaptureSourceGStreamer::create):
+
 2022-01-17  Carlos Garcia Campos  <[email protected]>
 
         [GTK][a11y] Stop using isolated tree for the ATSPI implementation

Modified: trunk/Source/WebCore/platform/mediastream/gstreamer/MockRealtimeVideoSourceGStreamer.cpp (288090 => 288091)


--- trunk/Source/WebCore/platform/mediastream/gstreamer/MockRealtimeVideoSourceGStreamer.cpp	2022-01-17 08:21:24 UTC (rev 288090)
+++ trunk/Source/WebCore/platform/mediastream/gstreamer/MockRealtimeVideoSourceGStreamer.cpp	2022-01-17 09:29:06 UTC (rev 288091)
@@ -52,7 +52,7 @@
 
 CaptureSourceOrError MockDisplayCaptureSourceGStreamer::create(const CaptureDevice& device, String&& hashSalt, const MediaConstraints* constraints)
 {
-    auto mockSource = adoptRef(*new MockRealtimeVideoSourceGStreamer(String { device.persistentId() }, String { device.label() }, WTFMove(hashSalt)));
+    auto mockSource = adoptRef(*new MockRealtimeVideoSourceGStreamer(String { device.persistentId() }, String { device.label() }, String { hashSalt }));
 
     if (constraints) {
         if (auto error = mockSource->applyConstraints(*constraints))
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to