[sysprof/wip/visualizers] capture-cursor: reset reader upon creation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/visualizers] capture-cursor: reset reader upon creation
- Date: Tue, 27 Sep 2016 00:40:03 +0000 (UTC)
commit e4bc640a491f3fd5997c1406448086aa9239a1bd
Author: Christian Hergert <chergert redhat com>
Date: Mon Sep 26 17:37:11 2016 -0700
capture-cursor: reset reader upon creation
When creating our private reader copy, we need to reset the
reader so that we start at the beginning. Otherwise, we are
likely to be at the end of the capture (especially for in
memory captures).
lib/sp-capture-cursor.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/sp-capture-cursor.c b/lib/sp-capture-cursor.c
index de25a9f..2a58af5 100644
--- a/lib/sp-capture-cursor.c
+++ b/lib/sp-capture-cursor.c
@@ -199,6 +199,7 @@ sp_capture_cursor_new (SpCaptureReader *reader)
self = g_object_new (SP_TYPE_CAPTURE_CURSOR, NULL);
self->reader = sp_capture_reader_copy (reader);
+ sp_capture_reader_reset (self->reader);
return self;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]