Skip to content

Commit

Permalink
fix indentation 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Neko-Life committed May 1, 2024
1 parent 4574a78 commit 6da82e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dpp/discordvoiceclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1170,8 +1170,8 @@ discord_voice_client& discord_voice_client::skip_to_next_marker() {
if (!outbuf.empty()) {
/* Find the first marker to skip to */
auto i = std::find_if(outbuf.begin(), outbuf.end(), [](const voice_out_packet &v){
return v.packet.size() == sizeof(uint16_t) && (*((uint16_t*)(v.packet.data()))) == AUDIO_TRACK_MARKER;
});
return v.packet.size() == sizeof(uint16_t) && (*((uint16_t*)(v.packet.data()))) == AUDIO_TRACK_MARKER;

Check notice on line 1173 in src/dpp/discordvoiceclient.cpp

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/dpp/discordvoiceclient.cpp#L1173

C-style pointer casting
});

if (i != outbuf.end()) {
/* Skip queued packets until including found marker */
Expand Down

0 comments on commit 6da82e2

Please sign in to comment.