Update RTP sequence after each send

While there, disable the linux frame queue implementation for now.
I need think of a way to store a unique RTP sequence for each buffer
This commit is contained in:
Aaro Altonen 2019-07-26 10:53:13 +03:00
parent b5d07cc0eb
commit b16956d953
1 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,7 @@ static rtp_error_t __push_hevc_frame(kvz_rtp::connection *conn, uint8_t *data, s
LOG_DEBUG("send frag size: %zu, type %u", data_len, nalType);
#ifdef __linux__
#if 0
auto fqueue = dynamic_cast<kvz_rtp::writer *>(conn)->get_frame_queue();
/* all fragment units share the same RTP and HEVC NAL headers
@ -128,6 +128,8 @@ static rtp_error_t __push_hevc_frame(kvz_rtp::connection *conn, uint8_t *data, s
if ((ret = kvz_rtp::send::send_frame(conn, buffer, sizeof(buffer))) != RTP_OK)
return RTP_GENERIC_ERROR;
conn->update_rtp_sequence(buffer);
data_pos += MAX_PAYLOAD;
data_left -= MAX_PAYLOAD;