Merge pull request #20566 from hrydgard/atrac-cleanup

Atrac code cleanup, logging and comment fixes
This commit is contained in:
Henrik Rydgård committed 2025-07-09 16:34:07 +02:00
1 parent dde8d22ba6
commit db5ef6fb87
17 files changed
+462 -389

No files matched your search

+8 -6
View File
@@ -1096,6 +1096,14 @@ void DrawMediaDecodersView(ImConfig &cfg, ImControl &control) {
ImGui::Checkbox("", mutePtr);
}
ImGui::TableNextColumn();
const AtracBase *ctx = __AtracGetCtx(i, &codecType);
if (!ctx) {
// Nothing more we can display about uninitialized contexts.
ImGui::PopID();
continue;
}
switch (codecType) {
case 0:
ImGui::TextUnformatted("-"); // Uninitialized
@@ -1111,12 +1119,6 @@ void DrawMediaDecodersView(ImConfig &cfg, ImControl &control) {
break;
}
const AtracBase *ctx = __AtracGetCtx(i, &codecType);
if (!ctx) {
// Nothing more we can display about uninitialized contexts.
ImGui::PopID();
continue;
}
ImGui::TableNextColumn();
ImGui::TextUnformatted(AtracStatusToString(ctx->BufferState()));
ImGui::TableNextColumn();