Skip to content

Commit

Permalink
Removed compilation warnings from streamer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
bondagit committed Jul 6, 2024
1 parent a9d8ed5 commit 49bf65a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions daemon/streamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ bool Streamer::pcm_suspend() {

ssize_t Streamer::pcm_read(uint8_t* data, size_t rcount) {
ssize_t r;
size_t result = 0;
size_t count = rcount;

if (count != chunk_samples_) {
Expand All @@ -174,7 +173,6 @@ ssize_t Streamer::pcm_read(uint8_t* data, size_t rcount) {
return -1;
}
if (r > 0) {
result += r;
count -= r;
data += r * bytes_per_frame_;
}
Expand Down Expand Up @@ -443,6 +441,7 @@ void Streamer::close_files(uint8_t files_id) {
std::ostream_iterator<uint8_t>(
output_streams_[std::make_pair(sink.id, files_id)]));
output_ids_[files_id] = file_counter_;
return true;
}));
}

Expand Down

0 comments on commit 49bf65a

Please sign in to comment.