2021-04-08 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'RDFlacDecode' that caused conversion of files
	with names containing non-ASCII characters to fail.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-04-08 12:38:33 -04:00
parent 8933a074b9
commit e6495d9363
2 changed files with 5 additions and 4 deletions

View File

@ -20736,3 +20736,6 @@
'Original RadioTraffic.com Traffic Reconciliation (DEPRECATED)'
in rdadmin(1).
* Added a new 'RadioTraffic.com Traffic Reconciliation' report.
2021-04-08 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'RDFlacDecode' that caused conversion of files
with names containing non-ASCII characters to fail.

View File

@ -2,7 +2,7 @@
//
// Decode FLAC Files using libFLAC++
//
// (C) Copyright 2010,2016 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2010-2021 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@ -60,9 +60,7 @@ void RDFlacDecode::decode(RDWaveFile *wave,float *peak)
(double)flac_end_point*(double)wave->getSamplesPerSec()/1000.0;
}
flac_total_frames=0;
init(wave->getName().ascii());
//set_filename(wave->getName().ascii());
//init();
init(wave->getName().toUtf8());
while(flac_active&&process_single());
}