aboutsummaryrefslogtreecommitdiffstats
path: root/src/dabplussnoop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dabplussnoop.cpp')
-rw-r--r--src/dabplussnoop.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dabplussnoop.cpp b/src/dabplussnoop.cpp
index 228016d..f6bb8ac 100644
--- a/src/dabplussnoop.cpp
+++ b/src/dabplussnoop.cpp
@@ -299,7 +299,9 @@ bool DabPlusSnoop::analyse_au(vector<vector<uint8_t> >& aus)
{
stringstream ss_filename;
- ss_filename << "stream-" << m_index;
+ if (m_write_to_wav_file) {
+ ss_filename << "stream-" << m_index;
+ }
if (!m_faad_decoder.is_initialised()) {
m_faad_decoder.open(ss_filename.str(), m_ps_flag,