Skip to content

Commit a2a49b6

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

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

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

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

25662566
if (decoderFactoryAcceptsCaps)
25672567
return exposeAutoPlug;
2568+
#else
2569+
UNUSED_PARAM(factory);
25682570
#endif
25692571

25702572
return tryAutoPlug;
@@ -2585,7 +2587,7 @@ void MediaPlayerPrivateGStreamer::configureParsebin(GstElement* parsebin)
25852587
// Otherwise we need to ensure that the webkitthunderparser factory is present
25862588
// and preferred over other parsers
25872589
g_signal_connect(parsebin, "autoplug-factories",
2588-
G_CALLBACK(+[](GstElement*, GstPad*, GstCaps* caps, MediaPlayerPrivateGStreamer* player) -> GValueArray* {
2590+
G_CALLBACK(+[](GstElement*, GstPad*, GstCaps* caps, MediaPlayerPrivateGStreamer*) -> GValueArray* {
25892591
ALLOW_DEPRECATED_DECLARATIONS_BEGIN; // GValueArray is deprecated
25902592
GValueArray* result;
25912593
// 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)