Title: [246399] trunk/Source/WebCore
- Revision
- 246399
- Author
- ph...@webkit.org
- Date
- 2019-06-13 07:04:36 -0700 (Thu, 13 Jun 2019)
Log Message
[GStreamer] HLS stream slow start
https://bugs.webkit.org/show_bug.cgi?id=198377
Reviewed by Xabier Rodriguez-Calvar.
* platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
(webKitWebSrcCreate): Cut down the adapter condition to 200 ms to
improve start-up times for HLS playback.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (246398 => 246399)
--- trunk/Source/WebCore/ChangeLog 2019-06-13 11:38:45 UTC (rev 246398)
+++ trunk/Source/WebCore/ChangeLog 2019-06-13 14:04:36 UTC (rev 246399)
@@ -1,3 +1,14 @@
+2019-06-13 Philippe Normand <pnorm...@igalia.com>
+
+ [GStreamer] HLS stream slow start
+ https://bugs.webkit.org/show_bug.cgi?id=198377
+
+ Reviewed by Xabier Rodriguez-Calvar.
+
+ * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
+ (webKitWebSrcCreate): Cut down the adapter condition to 200 ms to
+ improve start-up times for HLS playback.
+
2019-06-13 Ludovico de Nittis <ludovico.denit...@collabora.com>
[GTK] gdk_display_get_device_manager and gdk_screen_get_width/height are deprecated
Modified: trunk/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp (246398 => 246399)
--- trunk/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp 2019-06-13 11:38:45 UTC (rev 246398)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp 2019-06-13 14:04:36 UTC (rev 246399)
@@ -389,7 +389,9 @@
unsigned retries = 0;
size_t available = gst_adapter_available_fast(priv->adapter.get());
while (available < size && !isAdapterDrained) {
- priv->adapterCondition.waitFor(priv->adapterLock, Seconds(1));
+ priv->adapterCondition.waitFor(priv->adapterLock, 200_ms, [&] {
+ return gst_adapter_available_fast(priv->adapter.get()) >= size;
+ });
retries++;
available = gst_adapter_available_fast(priv->adapter.get());
if (available && available < size)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes