Skip to content

Commit 025676c

Browse files
committed
[GStreamer] Solved some compiler warnings
1 parent b71cbf6 commit 025676c

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,8 @@ void LibWebRTCMediaEndpoint::OnStatsDelivered(const rtc::scoped_refptr<const web
848848
logger().logAlways(LogWebRTCStats, Logger::LogSiteIdentifier("LibWebRTCMediaEndpoint"_s, "OnStatsDelivered"_s, logIdentifier()), statsLogger);
849849
}
850850
});
851+
#else
852+
UNUSED_PARAM(report);
851853
#endif
852854
}
853855

Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2565,6 +2565,9 @@ void MediaPlayerPrivateGStreamer::configureParsebin(GstElement* parsebin)
25652565

25662566
if (decoderFactoryAcceptsCaps)
25672567
return exposeAutoPlug;
2568+
#else
2569+
UNUSED_PARAM(factory);
2570+
UNUSED_PARAM(player);
25682571
#endif
25692572

25702573
return tryAutoPlug;
@@ -2585,7 +2588,7 @@ void MediaPlayerPrivateGStreamer::configureParsebin(GstElement* parsebin)
25852588
// Otherwise we need to ensure that the webkitthunderparser factory is present
25862589
// and preferred over other parsers
25872590
g_signal_connect(parsebin, "autoplug-factories",
2588-
G_CALLBACK(+[](GstElement*, GstPad*, GstCaps* caps, MediaPlayerPrivateGStreamer* player) -> GValueArray* {
2591+
G_CALLBACK(+[](GstElement*, GstPad*, GstCaps* caps, MediaPlayerPrivateGStreamer*) -> GValueArray* {
25892592
ALLOW_DEPRECATED_DECLARATIONS_BEGIN; // GValueArray is deprecated
25902593
GValueArray* result;
25912594
// First, build a list of all decodable factories that can handle the caps,

Source/WebCore/platform/graphics/gstreamer/VideoEncoderGStreamer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ static std::optional<unsigned> retrieveTemporalIndex(const GRefPtr<GstSample>& s
195195
auto name = gstStructureGetName(structure);
196196
GST_TRACE("Retrieval of temporal index from encoded format %s is not yet supported.", reinterpret_cast<const char*>(name.rawCharacters()));
197197
#endif
198+
#else
199+
UNUSED_PARAM(sample);
198200
#endif
199201
return { };
200202
}

0 commit comments

Comments
 (0)