Skip to content

Commit

Permalink
fix compile error in srs_protocol_rtmp_stack.cpp (#4247)
Browse files Browse the repository at this point in the history
Fix a compiling error.

## How to reproduce?


https://github.com/ossrs/srs/blob/7951bf3bd63a33ec5bfddfba39f9d6e2d476e381/trunk/src/core/srs_core_performance.hpp#L146

Delete this line to write `iovs` one by one (or 2 by 2).
Then `./configure && make`, the compiling error appears.
  • Loading branch information
suzp1984 authored Dec 5, 2024
1 parent 7951bf3 commit 7416134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/src/protocol/srs_protocol_rtmp_stack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ srs_error_t SrsProtocol::do_send_messages(SrsSharedPtrMessage** msgs, int nb_msg
// consume sendout bytes.
p += payload_size;

if ((er = skt->writev(iovs, 2, NULL)) != srs_success) {
if ((err = skt->writev(iovs, 2, NULL)) != srs_success) {
return srs_error_wrap(err, "writev");
}
}
Expand Down

0 comments on commit 7416134

Please sign in to comment.