1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-13 14:13:32 +02:00

Bug 2445 - Cryptic, unhelpful, error message when importing malformed MP3 file

This commit is contained in:
Leland Lucius
2020-08-09 13:24:48 -05:00
parent 56b1b5c31f
commit dffa24cf69
2 changed files with 2 additions and 2 deletions

View File

@@ -1097,7 +1097,7 @@ enum mad_flow MP3ImportFileHandle::ErrorCB(struct mad_stream *stream,
} }
// Let the user know about the error // Let the user know about the error
AudacityMessageBox(XO("Import failed\n\nThis is likely caused by an malformed MP3.\n\n")); AudacityMessageBox(XO("Import failed\n\nThis is likely caused by a malformed MP3.\n\n"));
return MAD_FLOW_BREAK; return MAD_FLOW_BREAK;
} }

View File

@@ -441,7 +441,7 @@ SelectHandle::SelectHandle
auto pTrack = pTrackView->FindTrack(); auto pTrack = pTrackView->FindTrack();
mSnapStart = mSnapManager->Snap(pTrack.get(), time, false); mSnapStart = mSnapManager->Snap(pTrack.get(), time, false);
if (mSnapStart.snappedPoint) if (mSnapStart.snappedPoint)
mSnapStart.outCoord += mRect.x; mSnapStart.outCoord += mRect.x;
else else
mSnapStart.outCoord = -1; mSnapStart.outCoord = -1;