clearer error messages
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28576 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1032,7 +1032,7 @@ RecorderWindow::UpdatePlayFile()
|
|||||||
entry.GetRef(&ref);
|
entry.GetRef(&ref);
|
||||||
fPlayFile = new BMediaFile(&ref); //, B_MEDIA_FILE_UNBUFFERED);
|
fPlayFile = new BMediaFile(&ref); //, B_MEDIA_FILE_UNBUFFERED);
|
||||||
if ((err = fPlayFile->InitCheck()) < B_OK) {
|
if ((err = fPlayFile->InitCheck()) < B_OK) {
|
||||||
ErrorAlert("get the file to play", err);
|
ErrorAlert("recognize this file as a media file", err);
|
||||||
delete fPlayFile;
|
delete fPlayFile;
|
||||||
fPlayFile = NULL;
|
fPlayFile = NULL;
|
||||||
RemoveCurrentSoundItem();
|
RemoveCurrentSoundItem();
|
||||||
@@ -1056,7 +1056,7 @@ RecorderWindow::UpdatePlayFile()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!fPlayTrack) {
|
if (!fPlayTrack) {
|
||||||
ErrorAlert("get the file to play", err);
|
ErrorAlert("find an audio track", err);
|
||||||
delete fPlayFile;
|
delete fPlayFile;
|
||||||
fPlayFile = NULL;
|
fPlayFile = NULL;
|
||||||
RemoveCurrentSoundItem();
|
RemoveCurrentSoundItem();
|
||||||
|
|||||||
Reference in New Issue
Block a user