Title: [241590] trunk/Source/WebCore
- Revision
- 241590
- Author
- [email protected]
- Date
- 2019-02-15 09:26:16 -0800 (Fri, 15 Feb 2019)
Log Message
[GStreamer] Simplify GObject class name check
https://bugs.webkit.org/show_bug.cgi?id=194537
Patch by Philippe Normand <[email protected]> on 2019-02-15
Reviewed by Michael Catanzaro.
* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::uriDecodeBinElementAddedCallback):
Use G_OBJECT_TYPE_NAME() to filter out uridecodebin child
elements.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (241589 => 241590)
--- trunk/Source/WebCore/ChangeLog 2019-02-15 17:14:59 UTC (rev 241589)
+++ trunk/Source/WebCore/ChangeLog 2019-02-15 17:26:16 UTC (rev 241590)
@@ -1,3 +1,15 @@
+2019-02-15 Philippe Normand <[email protected]>
+
+ [GStreamer] Simplify GObject class name check
+ https://bugs.webkit.org/show_bug.cgi?id=194537
+
+ Reviewed by Michael Catanzaro.
+
+ * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
+ (WebCore::MediaPlayerPrivateGStreamer::uriDecodeBinElementAddedCallback):
+ Use G_OBJECT_TYPE_NAME() to filter out uridecodebin child
+ elements.
+
2019-02-15 Wenson Hsieh <[email protected]>
Refactor EditingStyle::textDirection to return an Optional<WritingDirection> instead of a bool
Modified: trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp (241589 => 241590)
--- trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp 2019-02-15 17:14:59 UTC (rev 241589)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp 2019-02-15 17:26:16 UTC (rev 241590)
@@ -1753,7 +1753,7 @@
void MediaPlayerPrivateGStreamer::uriDecodeBinElementAddedCallback(GstBin* bin, GstElement* element, MediaPlayerPrivateGStreamer* player)
{
- if (g_strcmp0(G_OBJECT_CLASS_NAME(G_OBJECT_GET_CLASS(G_OBJECT(element))), "GstDownloadBuffer"))
+ if (g_strcmp0(G_OBJECT_TYPE_NAME(element), "GstDownloadBuffer"))
return;
player->m_downloadBuffer = element;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes