doc: Fix example code

This commit is contained in:
Aaro Altonen 2021-05-30 07:52:40 +03:00
parent 9c6e3a40d6
commit 984647cad6
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ int main(void)
uvgrtp::media_stream *strm = sess->create_stream(8888, 8888, RTP_FORMAT_GENERIC, RTP_NO_FLAGS);
char *message = (char *)"Hello, world!";
size_t msg_len = strlen(message);
size_t msg_len = strlen(message) + 1;
for (;;) {
strm->push_frame((uint8_t *)message, msg_len, RTP_NO_FLAGS);