Title: [176561] trunk/Source/WebCore
Revision
176561
Author
[email protected]
Date
2014-11-28 03:05:11 -0800 (Fri, 28 Nov 2014)

Log Message

[GStreamer] HTTP source element lacks SCHEDULING query support
https://bugs.webkit.org/show_bug.cgi?id=139064

Reviewed by Carlos Garcia Campos.

No new tests, covered by http/tests/media/hls.

* platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
(webKitWebSrcQueryWithParent): Make the element handle SCHEDULING
queries with the BANDWIDTH_LIMITED flag. This helps uridecodebin
to configure itself for adaptive streaming playback scenarios.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (176560 => 176561)


--- trunk/Source/WebCore/ChangeLog	2014-11-28 09:50:18 UTC (rev 176560)
+++ trunk/Source/WebCore/ChangeLog	2014-11-28 11:05:11 UTC (rev 176561)
@@ -1,3 +1,17 @@
+2014-11-26  Philippe Normand  <[email protected]>
+
+        [GStreamer] HTTP source element lacks SCHEDULING query support
+        https://bugs.webkit.org/show_bug.cgi?id=139064
+
+        Reviewed by Carlos Garcia Campos.
+
+        No new tests, covered by http/tests/media/hls.
+
+        * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
+        (webKitWebSrcQueryWithParent): Make the element handle SCHEDULING
+        queries with the BANDWIDTH_LIMITED flag. This helps uridecodebin
+        to configure itself for adaptive streaming playback scenarios.
+
 2014-11-27  Ryuan Choi  <[email protected]>
 
         [EFL] Remove E_Dbus dependency

Modified: trunk/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp (176560 => 176561)


--- trunk/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp	2014-11-28 09:50:18 UTC (rev 176560)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp	2014-11-28 11:05:11 UTC (rev 176561)
@@ -584,6 +584,15 @@
         result = TRUE;
         break;
     }
+    case GST_QUERY_SCHEDULING: {
+        GstSchedulingFlags flags;
+        int minSize, maxSize, align;
+
+        gst_query_parse_scheduling(query, &flags, &minSize, &maxSize, &align);
+        gst_query_set_scheduling(query, static_cast<GstSchedulingFlags>(flags | GST_SCHEDULING_FLAG_BANDWIDTH_LIMITED), minSize, maxSize, align);
+        result = TRUE;
+        break;
+    }
     default: {
         GRefPtr<GstPad> target = adoptGRef(gst_ghost_pad_get_target(GST_GHOST_PAD_CAST(pad)));
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to