summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/file_source_impl.cc
diff options
context:
space:
mode:
authorcottrema <mark.cottrell@taitradio.com>2014-06-23 11:02:08 +1200
committerTom Rondeau <tom@trondeau.com>2014-06-26 14:45:33 -0400
commit4f6b982c87b36a377ed270f2fd4ae6cddb6e0aa3 (patch)
tree4a038b6fe011e44b332059b2dd087c4baabcd08e /gr-blocks/lib/file_source_impl.cc
parent0e10ce040c5884a40d7a416ea0db34a5f426002a (diff)
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
Diffstat (limited to 'gr-blocks/lib/file_source_impl.cc')
-rw-r--r--gr-blocks/lib/file_source_impl.cc1
1 files changed, 1 insertions, 0 deletions
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()