Skip to content

Commit 134e03d

Browse files
committed
[GStreamer][WebAudio] Crash when setting max-size-time property of queue in AudioDestination on arm32 platforms
https://bugs.webkit.org/show_bug.cgi?id=295090 Reviewed by Xabier Rodriguez-Calvar. Explicitly cast the property value to guint64. Original author: Eugene Mutavchi <Ievgen_Mutavchi@comcast.com> See also: #1524 * Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp: (WebCore::AudioDestinationGStreamer::AudioDestinationGStreamer): Canonical link: https://commits.webkit.org/296718@main
1 parent 07d5322 commit 134e03d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ AudioDestinationGStreamer::AudioDestinationGStreamer(AudioIOCallback& callback,
153153
GstElement* audioResample = makeGStreamerElement("audioresample", nullptr);
154154

155155
auto queue = gst_element_factory_make("queue", nullptr);
156-
g_object_set(queue, "max-size-buffers", 2, "max-size-bytes", 0, "max-size-time", 0, nullptr);
156+
g_object_set(queue, "max-size-buffers", 2, "max-size-bytes", 0, "max-size-time", static_cast<guint64>(0), nullptr);
157157

158158
gst_bin_add_many(GST_BIN_CAST(m_pipeline.get()), m_src.get(), audioConvert, audioResample, queue, audioSink.get(), nullptr);
159159

0 commit comments

Comments
 (0)