Skip to content

Commit

Permalink
fixed: decode danmaku #66
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonflylee committed Aug 29, 2024
1 parent 33ff9ba commit 1941170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/activity/player_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ void PlayerView::requestDanmaku() {

std::vector<DanmakuItem> items;
for (auto child = element->FirstChildElement(); child != nullptr; child = child->NextSiblingElement()) {
if (child->Name()[0] != 'd') continue; // 简易判断是不是弹幕
if (strcmp(child->Name(), "d")) continue; // 简易判断是不是弹幕
const char* content = child->GetText();
if (!content) continue;
try {
Expand Down

0 comments on commit 1941170

Please sign in to comment.