1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-12 19:31:53 +00:00

fix compile error in srs_protocol_rtmp_stack.cpp (#4247)

Fix a compiling error.

## How to reproduce?


7951bf3bd6/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.
This commit is contained in:
Jacob Su 2024-12-05 16:53:22 +08:00 committed by GitHub
parent 7951bf3bd6
commit 7416134262
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -539,7 +539,7 @@ srs_error_t SrsProtocol::do_send_messages(SrsSharedPtrMessage** msgs, int nb_msg
// consume sendout bytes. // consume sendout bytes.
p += payload_size; 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"); return srs_error_wrap(err, "writev");
} }
} }