From 381ea8e4b4c15ef916a692160b50c3491699fe98 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 22 Jul 2013 11:14:02 +0200 Subject: Update histogram when moving frame slider --- bin/common/ring-buffer.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin/common/ring-buffer.c') diff --git a/bin/common/ring-buffer.c b/bin/common/ring-buffer.c index 039024f..850dfc0 100644 --- a/bin/common/ring-buffer.c +++ b/bin/common/ring-buffer.c @@ -44,6 +44,14 @@ ring_buffer_get_current_pointer (RingBuffer *buffer) return buffer->data + (buffer->current_index % buffer->n_blocks_total) * buffer->block_size; } +void +ring_buffer_set_current_pointer (RingBuffer *buffer, + guint index) +{ + g_assert (index < buffer->n_blocks_total); + buffer->current_index = index; +} + gpointer ring_buffer_get_pointer (RingBuffer *buffer, guint index) -- cgit v1.2.3