Skip to content

Commit

Permalink
Merge pull request #58 from bbc/philipn-improve-bwav-error-message
Browse files Browse the repository at this point in the history
Improve bwav bext chunk warning messages
  • Loading branch information
philipnbbc authored Feb 26, 2024
2 parents 28a657e + ec64923 commit e182e6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wave/WaveBEXT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void WaveBEXT::SetOriginatorTimestamp(Timestamp timestamp)
timestamp.min > 59 ||
timestamp.sec > 59)
{
log_warn("Ignoring invalid originator timestamp\n");
log_warn("Ignoring invalid bext chunk origination date/time timestamp\n");
return;
}

Expand Down Expand Up @@ -307,7 +307,7 @@ void WaveBEXT::Read(WaveIO *input, uint32_t size)
input->ReadString(&buffer[11], 8);
buffer[19] = '\0';
if (sscanf(buffer, "%u%*c%u%*c%u%*c%u%*c%u%*c%u", &year, &month, &day, &hour, &min, &sec) != 6) {
log_warn("Failed to parse bext timestamp %s\n", buffer);
log_warn("Failed to parse bext chunk's origination date + time value '%s'\n", buffer);
} else {
mOriginatorTimestamp.year = year;
mOriginatorTimestamp.month = month;
Expand Down

0 comments on commit e182e6c

Please sign in to comment.