From 4f6b982c87b36a377ed270f2fd4ae6cddb6e0aa3 Mon Sep 17 00:00:00 2001 From: cottrema <mark.cottrell@taitradio.com> Date: Mon, 23 Jun 2014 11:02:08 +1200 Subject: call do_update after calling open in the file source constructor, otherwise if seek is called before work, a segmentation fault will occur as d_fp is null --- gr-blocks/lib/file_source_impl.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'gr-blocks/lib/file_source_impl.cc') diff --git a/gr-blocks/lib/file_source_impl.cc b/gr-blocks/lib/file_source_impl.cc index 941ca15c0e..0c3d752d9c 100644 --- a/gr-blocks/lib/file_source_impl.cc +++ b/gr-blocks/lib/file_source_impl.cc @@ -67,6 +67,7 @@ namespace gr { d_updated(false) { open(filename, repeat); + do_update(); } file_source_impl::~file_source_impl() -- cgit v1.2.3