adaptivedemux: handle snap seeking without setting any position
authorThiago Santos <thiagoss@osg.samsung.com>
Fri, 26 Feb 2016 21:17:37 +0000 (18:17 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Fri, 26 Feb 2016 21:17:37 +0000 (18:17 -0300)
commitc65b0e3a574d59766b172950eec8ed5edd297a6a
treecec8cc29ced0b837a1336fc65d3bdd17f2cd67d7
parent38cc9070cd002209ae3c5c12d8bc6ec62cf84b91
adaptivedemux: handle snap seeking without setting any position

When the start_type is GST_SEEK_TYPE_NONE for a forward seek
(or stop_type for a reverse) is not set on a snap seeking operation,
the element should use the current position and then snap as requested.

Also fixes uninitialized variable complaint by clang about
'ts' variable.
gst-libs/gst/adaptivedemux/gstadaptivedemux.c
tests/check/elements/dash_demux.c