queue2: update current read position before waiting
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 11 Apr 2012 10:02:50 +0000 (12:02 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 11 Apr 2012 10:45:41 +0000 (12:45 +0200)
commitccbeb1988144a090e468f1e0ded5f97569c94e8a
tree4e9fc11a8c03b909e4ece5727e6122591d53ee16
parent463a8d9abf26969e44b2b146802d19802f7c06aa
queue2: update current read position before waiting

When we don't have enough bytes in the ringbuffer to satisfy the current
request, first update the current read position before waiting. If we don't do
that, the ringbuffer might appear full and the writer will never write more
bytes to wake us up.
plugins/elements/gstqueue2.c