dashdemux: add support for HTTP HEAD method of time sync
authorAlex Ashley <bugzilla@ashley-family.net>
Fri, 14 Aug 2015 08:44:24 +0000 (09:44 +0100)
committerThiago Santos <thiagoss@osg.samsung.com>
Fri, 14 Aug 2015 09:47:21 +0000 (06:47 -0300)
commit93edd99bf7fa481b4bebc9f05ab560111eeb397c
tree69fbb8167d5df06a4ec28ce7bb500aa35188dba2
parent1640ee2b339fb35cd8eb5779875242e347697265
dashdemux: add support for HTTP HEAD method of time sync

The urn:mpeg:dash:utc:http-head:2014 method of time synchronisation
uses an HTTP HEAD request to a specified URL and then parses the
Date: HTTP response header.

This commit adds support to dashdemux for this method of time
synchronisation by making a HEAD request and then parsing the Date:
response.

This commit adds support to gstfragment to return the HTTP headers
and to uridownloader to support HEAD requests. To avoid creating a
new API, the RANGE get function is re-used (abused?) with start=-1
and end=-1 to indicate a HEAD request.

https://bugzilla.gnome.org/show_bug.cgi?id=752413
ext/dash/gstdashdemux.c
gst-libs/gst/uridownloader/gstfragment.c
gst-libs/gst/uridownloader/gstfragment.h
gst-libs/gst/uridownloader/gsturidownloader.c