adaptivedemux: refactor chunk downloading flow
authorThiago Santos <thiagoss@osg.samsung.com>
Thu, 15 Jan 2015 20:44:45 +0000 (17:44 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Mon, 19 Jan 2015 18:30:04 +0000 (15:30 -0300)
commit229a15b39366f9d7c83c8e3289536f1a15d3dfc0
tree040fa8de6e5db75a42c52df4555f7c8f3ba57d00
parent15d51c1f6cd656c20cb7443152565be33615f8df
adaptivedemux: refactor chunk downloading flow

Add more power to the chunk_received function (renamed to data_received)
and also to the fragment_finish function.

The data_received function must parse/decrypt the data if necessary and
also push it using the new push_buffer function that is exposed now. The
default implementation gets data from the stream adapter (all available)
and pushes it.

The fragment_finish function must also advance the fragment. The default
implementation only advances the fragment.

This allows the subsegment handling in dashdemux to continuously download
the same file from the server instead of stopping at every subsegment
boundary and starting a new request
ext/dash/gstdashdemux.c
ext/dash/gstdashdemux.h
ext/hls/gsthlsdemux.c
ext/hls/gsthlsdemux.h
gst-libs/gst/adaptivedemux/gstadaptivedemux.c
gst-libs/gst/adaptivedemux/gstadaptivedemux.h