Title: [252882] trunk/Source/WebCore
- Revision
- 252882
- Author
- [email protected]
- Date
- 2019-11-26 03:02:24 -0800 (Tue, 26 Nov 2019)
Log Message
[GStreamer] Cache the CString returned by String::utf8()
https://bugs.webkit.org/show_bug.cgi?id=203553
Reviewed by Philippe Normand.
* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::handleMessage):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (252881 => 252882)
--- trunk/Source/WebCore/ChangeLog 2019-11-26 10:37:43 UTC (rev 252881)
+++ trunk/Source/WebCore/ChangeLog 2019-11-26 11:02:24 UTC (rev 252882)
@@ -1,3 +1,13 @@
+2019-11-26 Carlos Garcia Campos <[email protected]>
+
+ [GStreamer] Cache the CString returned by String::utf8()
+ https://bugs.webkit.org/show_bug.cgi?id=203553
+
+ Reviewed by Philippe Normand.
+
+ * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
+ (WebCore::MediaPlayerPrivateGStreamer::handleMessage):
+
2019-11-26 Ryosuke Niwa <[email protected]>
Document::needsStyleRecalc() shouldn't return true for fragment scrolling (m_gotoAnchorNeededAfterStylesheetsLoad)
Modified: trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp (252881 => 252882)
--- trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp 2019-11-26 10:37:43 UTC (rev 252881)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp 2019-11-26 11:02:24 UTC (rev 252882)
@@ -2331,13 +2331,13 @@
GUniqueOutPtr<GstStructure> responseHeaders;
if (gst_structure_get(structure, "response-headers", GST_TYPE_STRUCTURE, &responseHeaders.outPtr(), nullptr)) {
- const char* contentLengthHeaderName = httpHeaderNameString(HTTPHeaderName::ContentLength).utf8().data();
+ CString contentLengthHeaderName = httpHeaderNameString(HTTPHeaderName::ContentLength).utf8();
uint64_t contentLength = 0;
- if (!gst_structure_get_uint64(responseHeaders.get(), contentLengthHeaderName, &contentLength)) {
+ if (!gst_structure_get_uint64(responseHeaders.get(), contentLengthHeaderName.data(), &contentLength)) {
// souphttpsrc sets a string for Content-Length, so
// handle it here, until we remove the webkit+ protocol
// prefix from webkitwebsrc.
- if (const char* contentLengthAsString = gst_structure_get_string(responseHeaders.get(), contentLengthHeaderName)) {
+ if (const char* contentLengthAsString = gst_structure_get_string(responseHeaders.get(), contentLengthHeaderName.data())) {
contentLength = g_ascii_strtoull(contentLengthAsString, nullptr, 10);
if (contentLength == G_MAXUINT64)
contentLength = 0;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes