From: <wt...@ke...> - 2010-03-24 18:05:12
|
Module: gstreamer Branch: master Commit: 11304c125708b06df910716bd56e4fd610664681 URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=11304c125708b06df910716bd56e4fd610664681 Author: Wim Taymans <wim...@co...> Date: Wed Mar 24 18:18:13 2010 +0100 queue2: implement flushing in download buffering Maintain a separate variable to control src and sink flowreturn values so that we can unlock the src part without shutting down the sink part. Add flushing for upstream pull based elements that unblocks our getrange function. This implements seeking when blocking for more data. Add some arbitrary threshold before attempting a seek. Add a FIXME for this because we need to find a sensible threshold based on the input rate. --- plugins/elements/gstqueue2.c | 111 ++++++++++++++++++++++++++++++------------ plugins/elements/gstqueue2.h | 1 + 2 files changed, 80 insertions(+), 32 deletions(-) Diff: http://cgit.freedesktop.org/gstreamer/gstreamer/diff/?id=11304c125708b06df910716bd56e4fd610664681 |