Skip to content

Commit

Permalink
[GLIB] Fix clang build (-Werror,-Wunused-lambda-capture)
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=255674

Reviewed by Michael Catanzaro.

Depending on the GStreamer version this fails to compile, just ensure `this` is
always used.

* Source/WebCore/Modules/mediastream/gstreamer/GStreamerDataChannelHandler.cpp:
(WebCore::GStreamerDataChannelHandler::onMessageData):

Canonical link: https://commits.webkit.org/263166@main
  • Loading branch information
TingPing authored and philn committed Apr 20, 2023
1 parent ed632b1 commit f4b8a8d
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -334,6 +334,7 @@ void GStreamerDataChannelHandler::onMessageData(GBytes* bytes)
return;

postTask([this, client = m_client, bytes = GRefPtr<GBytes>(bytes)] {
UNUSED_VARIABLE(this); // Conditionally used in DC_MEMDUMP.
if (!*client)
return;
gsize size = 0;
Expand Down

0 comments on commit f4b8a8d

Please sign in to comment.