From 9410238d303654f6e20222143b9c517f4fcbabb3 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 27 May 2019 17:16:48 -0700 Subject: [PATCH] libsysprof-capture: skip frame when necessary --- src/libsysprof-capture/sysprof-capture-reader.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libsysprof-capture/sysprof-capture-reader.c b/src/libsysprof-capture/sysprof-capture-reader.c index 1819f3f2..2e91ac67 100644 --- a/src/libsysprof-capture/sysprof-capture-reader.c +++ b/src/libsysprof-capture/sysprof-capture-reader.c @@ -1197,7 +1197,10 @@ sysprof_capture_reader_list_files (SysprofCaptureReader *self) const SysprofCaptureFileChunk *file; if (type != SYSPROF_CAPTURE_FRAME_FILE_CHUNK) - continue; + { + sysprof_capture_reader_skip (self); + continue; + } if (!(file = sysprof_capture_reader_read_file (self))) break;