Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19c59686 authored by Byeongjo Park's avatar Byeongjo Park Committed by Lajos Molnar
Browse files

VT: Remove assertion in send() function.



[Problem] Media server got crashed if wifi connection is disconnected
while ARTPWriter is sending rtp packets.

[Cause] There is an assertion condition in send().

[Solution] Remove assertion in send().

Merged-in: I24d9d673afed529e4e571f6fefc3b2ae0c7fef1a
Change-Id: I24d9d673afed529e4e571f6fefc3b2ae0c7fef1a
Signed-off-by: default avatarByeongjo Park <bjo.park@samsung.com>
parent a5407767
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -498,7 +498,9 @@ void ARTPWriter::send(const sp<ABuffer> &buffer, bool isRTCP) {
    ssize_t n = sendto(isRTCP ? mRTCPSocket : mRTPSocket,
            buffer->data(), buffer->size(), 0, remAddr, sizeSockSt);

    CHECK_EQ(n, (ssize_t)buffer->size());
    if (n != (ssize_t)buffer->size()) {
        ALOGW("packets can not be sent. ret=%d, buf=%d", (int)n, (int)buffer->size());
    }

#if LOG_TO_FILES
    int fd = isRTCP ? mRTCPFd : mRTPFd;