Skip to content

Commit d50c86f

Browse files
committed
disallow rialtomseaudio in webaudio
1 parent cd5fe9d commit d50c86f

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Source/WebCore/platform/gstreamer/GStreamerQuirkRialto.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ GStreamerQuirkRialto::GStreamerQuirkRialto()
6666
m_sinkCaps = WTFMove(templateCaps);
6767
}
6868
}
69+
70+
m_disallowedWebAudioDecoders = {
71+
"rialtomseaudiosink"_s
72+
};
6973
}
7074

7175
bool GStreamerQuirkRialto::isPlatformSupported() const

Source/WebCore/platform/gstreamer/GStreamerQuirkRialto.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ class GStreamerQuirkRialto final : public GStreamerQuirk {
4141
GstElement* createAudioSink() final;
4242
GstElement* createWebAudioSink() final;
4343
std::optional<bool> isHardwareAccelerated(GstElementFactory*) final;
44+
Vector<String> disallowedWebAudioDecoders() const final { return m_disallowedWebAudioDecoders; }
4445
bool shouldParseIncomingLibWebRTCBitStream() const final { return false; }
4546
unsigned getAdditionalPlaybinFlags() const { return getGstPlayFlag("text") | getGstPlayFlag("native-audio") | getGstPlayFlag("native-video"); }
4647

4748
private:
49+
Vector<String> m_disallowedWebAudioDecoders;
4850
GRefPtr<GstCaps> m_sinkCaps;
4951
};
5052

0 commit comments

Comments
 (0)