[GStreamer] improved duration query support in the HTTP source element
authorphiln@webkit.org <philn@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Jun 2016 10:20:59 +0000 (10:20 +0000)
committerphiln@webkit.org <philn@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Jun 2016 10:20:59 +0000 (10:20 +0000)
commit3107eaed65a68a1f27c79daf50bc9a9c98676b09
tree973ba9355172bb5508fbe2dc662f5147e8cc9b4d
parente0667886fc21dd22f8ccdfdb1f1cb44e2e0283f7
[GStreamer] improved duration query support in the HTTP source element
https://bugs.webkit.org/show_bug.cgi?id=159204

Reviewed by Carlos Garcia Campos.

When we have the Content-Length value it is possible to infer the TIME
duration in most cases by performing a convert query in the downstream
elements. This is especially useful when the duration query wasn't
managed by the sinks and thus reached the source element.

* platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
(webKitWebSrcQueryWithParent):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp