Skip to content

Commit 7416134

Browse files
authored
fix compile error in srs_protocol_rtmp_stack.cpp (#4247)
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.
1 parent 7951bf3 commit 7416134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trunk/src/protocol/srs_protocol_rtmp_stack.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ srs_error_t SrsProtocol::do_send_messages(SrsSharedPtrMessage** msgs, int nb_msg
539539
// consume sendout bytes.
540540
p += payload_size;
541541

542-
if ((er = skt->writev(iovs, 2, NULL)) != srs_success) {
542+
if ((err = skt->writev(iovs, 2, NULL)) != srs_success) {
543543
return srs_error_wrap(err, "writev");
544544
}
545545
}

0 commit comments

Comments
 (0)