From e4bc640a491f3fd5997c1406448086aa9239a1bd Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 26 Sep 2016 17:37:11 -0700 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/lib/sp-capture-cursor.c b/lib/sp-capture-cursor.c index de25a9f6..2a58af5a 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; }