Title: [292393] trunk/Source/WebCore
Revision
292393
Author
commit-qu...@webkit.org
Date
2022-04-05 06:50:58 -0700 (Tue, 05 Apr 2022)

Log Message

[GStreamer] GstCapsForeachFunc returns a gboolean
https://bugs.webkit.org/show_bug.cgi?id=238799

Patch by Carlos Garcia Campos <cgar...@igalia.com> on 2022-04-05
Reviewed by Adrian Perez de Castro.

* platform/mediastream/gstreamer/RealtimeOutgoingVideoSourceGStreamer.cpp:
(WebCore::RealtimeOutgoingVideoSourceGStreamer::RealtimeOutgoingVideoSourceGStreamer):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (292392 => 292393)


--- trunk/Source/WebCore/ChangeLog	2022-04-05 13:37:51 UTC (rev 292392)
+++ trunk/Source/WebCore/ChangeLog	2022-04-05 13:50:58 UTC (rev 292393)
@@ -1,3 +1,13 @@
+2022-04-05  Carlos Garcia Campos  <cgar...@igalia.com>
+
+        [GStreamer] GstCapsForeachFunc returns a gboolean
+        https://bugs.webkit.org/show_bug.cgi?id=238799
+
+        Reviewed by Adrian Perez de Castro.
+
+        * platform/mediastream/gstreamer/RealtimeOutgoingVideoSourceGStreamer.cpp:
+        (WebCore::RealtimeOutgoingVideoSourceGStreamer::RealtimeOutgoingVideoSourceGStreamer):
+
 2022-04-05  Zan Dobersek  <zdober...@igalia.com>
 
         [GTK][WPE] Use UnixFileDescriptor in DMABufObject, DMABufReleaseFlag

Modified: trunk/Source/WebCore/platform/mediastream/gstreamer/RealtimeOutgoingVideoSourceGStreamer.cpp (292392 => 292393)


--- trunk/Source/WebCore/platform/mediastream/gstreamer/RealtimeOutgoingVideoSourceGStreamer.cpp	2022-04-05 13:37:51 UTC (rev 292392)
+++ trunk/Source/WebCore/platform/mediastream/gstreamer/RealtimeOutgoingVideoSourceGStreamer.cpp	2022-04-05 13:50:58 UTC (rev 292393)
@@ -41,7 +41,7 @@
     auto* padTemplate = gst_element_get_pad_template(m_encoder.get(), "src");
     auto caps = adoptGRef(gst_pad_template_get_caps(padTemplate));
     m_allowedCaps = adoptGRef(gst_caps_new_empty());
-    gst_caps_foreach(caps.get(), reinterpret_cast<GstCapsForeachFunc>(+[](GstCapsFeatures*, GstStructure* structure, gpointer userData) {
+    gst_caps_foreach(caps.get(), reinterpret_cast<GstCapsForeachFunc>(+[](GstCapsFeatures*, GstStructure* structure, gpointer userData) -> gboolean {
         auto* source = reinterpret_cast<RealtimeOutgoingVideoSourceGStreamer*>(userData);
         const char* name = gst_structure_get_name(structure);
         const char* encodingName = nullptr;
@@ -53,6 +53,7 @@
             encodingName = "H264";
         if (encodingName)
             gst_caps_append_structure(source->m_allowedCaps.get(), gst_structure_new("application/x-rtp", "media", G_TYPE_STRING, "video", "encoding-name", G_TYPE_STRING, encodingName, "clock-rate", G_TYPE_INT, 90000, nullptr));
+        return TRUE;
     }), this);
 
     setSource(WTFMove(source));
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to