Don't show window size and function on stream error

This commit is contained in:
Alexander Kojevnikov 2016-04-05 22:01:13 -07:00
parent 3010e0f635
commit ac9c92df2d

View File

@ -205,6 +205,7 @@ std::string spek_pipeline_desc(const struct spek_pipeline *pipeline)
));
}
if (pipeline->file->get_error() == AudioError::OK) {
items.push_back(std::string(wxString::Format(wxT("W:%i"), pipeline->nfft).utf8_str()));
std::string window_function_name;
@ -224,6 +225,7 @@ std::string spek_pipeline_desc(const struct spek_pipeline *pipeline)
if (window_function_name.size()) {
items.push_back("F:" + window_function_name);
}
}
std::string desc;
for (const auto& item : items) {