We are creating the factories and keeping them alive forever, because GStreamerRegistryScanner is singleton. We can just delete them after the initialization and then create the factories we need on demand when checking AV! codecs.
Created attachment 414438 [details] Patch
Committed r270019: <https://trac.webkit.org/changeset/270019>
<rdar://problem/71577999>
The usage of OptionSet with All (`(1 << 8) - 1`) was asserting in debug: https://build.webkit.org/results/WPE-Linux-64-bit-Debug-Tests/r270023%20(5273)/css1/basic/contextual_selectors-crash-log.txt https://build.webkit.org/results/WPE-Linux-64-bit-Debug-Tests/r270023%20(5273)/results.html Tentative fix pushed in r270039 using fromRaw as suggested by Philippe.