Skip to content

Commit 7bd43a5

Browse files
committed
Minor changes
1 parent 87a9a8d commit 7bd43a5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/AudioTools/AudioPlayer.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ namespace audio_tools {
290290
int pos = inPath.lastIndexOf("/") + 1;
291291
strPath.substring(path, 0, pos);
292292
strfileName.substring(path, pos, inPath.length());
293-
if (!dir.open(strPath.c_str())) {//("/21/" , "001.mp3")
293+
if (!dir.open(strPath.c_str())) {
294294
LOGE("directory: %s not open", path);
295295
}
296296
else
@@ -305,7 +305,7 @@ namespace audio_tools {
305305
}
306306
else
307307
{
308-
LOGD("-> getFileByPath: '%s': %d", path, strfileName.c_str());
308+
LOGD("-> getFileByPath: %s , %s", strPath.c_str(), strfileName.c_str());
309309
}
310310
}
311311
}
@@ -613,6 +613,11 @@ namespace audio_tools {
613613
result = false;
614614
}
615615
}
616+
else {
617+
LOGW("-> begin: no stream selected");
618+
active = isActive;
619+
result = false;
620+
}
616621
return result;
617622
}
618623

0 commit comments

Comments
 (0)