summaryrefslogtreecommitdiff
path: root/gr-blocks/grc
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2017-07-13 13:37:48 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2017-07-13 13:37:48 -0700
commite0bd2f156dd3684b461f75a371766a48de43e74f (patch)
tree3629879fab6ca9b7d0831b2b015aa09470cde549 /gr-blocks/grc
parent29b4aa43a5296acf1c8de691f838ecee2597fb32 (diff)
parente3ef9bb387a17222fe390fac3b659199502e2efe (diff)
Merge remote-tracking branch 'github/pr/1301'
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r--gr-blocks/grc/blocks_file_source.xml12
1 files changed, 11 insertions, 1 deletions
diff --git a/gr-blocks/grc/blocks_file_source.xml b/gr-blocks/grc/blocks_file_source.xml
index 7ac573f2da..1f09e95168 100644
--- a/gr-blocks/grc/blocks_file_source.xml
+++ b/gr-blocks/grc/blocks_file_source.xml
@@ -8,8 +8,11 @@
<name>File Source</name>
<key>blocks_file_source</key>
<import>from gnuradio import blocks</import>
- <make>blocks.file_source($type.size*$vlen, $file, $repeat)</make>
+ <import>import pmt</import>
+ <make>blocks.file_source($type.size*$vlen, $file, $repeat)
+self.$(id).set_begin_tag($begin_tag)</make>
<callback>open($file, $repeat)</callback>
+ <callback>self.$(id).set_begin_tag($begin_tag)</callback>
<param>
<name>File</name>
<key>file</key>
@@ -66,6 +69,13 @@
<value>1</value>
<type>int</type>
</param>
+
+ <param>
+ <name>Add begin tag</name>
+ <key>begin_tag</key>
+ <value>pmt.PMT_NIL</value>
+ <type>raw</type>
+ </param>
<check>$vlen &gt; 0</check>
<source>
<name>out</name>