Commit 0622ba6
committed
[GStreamer][1.28] Ensure synchronous initialization of the device monitor
https://bugs.webkit.org/show_bug.cgi?id=308961
Reviewed by Xabier Rodriguez-Calvar.
In GStreamer 1.28 device providers start asynchronously and the monitor posts a message on the bus
once it has finished starting-up. We need the initial list of devices right away after starting, so
wait for the message to be posted on the bus before attempting to get the list of devices.
* Source/WebCore/platform/mediastream/gstreamer/GStreamerCaptureDeviceManager.cpp:
(WebCore::GStreamerCaptureDeviceManager::refreshCaptureDevices):
Canonical link: https://commits.webkit.org/308531@main1 parent 7f0510e commit 0622ba6
1 file changed
Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
342 | 350 | | |
343 | 351 | | |
344 | 352 | | |
| |||
0 commit comments