Skip to content
Snippets Groups Projects
Commit 8db1f5e9 authored by Julien Montant's avatar Julien Montant Committed by Hugo Beauzée-Luyssen
Browse files

srt: fix build issue with recent SRT library


The deprecated macro `SRTO_TSBPDDELAY` has been deleted from SRT.
This prevents the compilation with SRT versions >= v1.4.2.

See the corresponding SRT commit 0e2201aff6b379979cec43fee5e8f162717f6346.
```
-   SRTO_TSBPDDELAY = 23,     // DEPRECATED. ALIAS: SRTO_LATENCY
```

The (unrecommended) `SRTO_LATENCY` should be used instead, which was
already available back then. See notice next to SRTO_LATENCY in the SRT
library source code for details on why it's not recommended.

Signed-off-by: Alexandre Janniaux's avatarAlexandre Janniaux <ajanni@videolabs.io>
(edited message)
(cherry picked from commit 6e8d7743)

Signed-off-by: default avatarSteve Lhomme <robux4@ycbcr.xyz>
parent 9b590f6e
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ static bool srt_schedule_reconnect(stream_t *p_stream)
/* Set latency */
srt_set_socket_option( strm_obj, SRT_PARAM_LATENCY, p_sys->sock,
SRTO_TSBPDDELAY, &i_latency, sizeof(i_latency) );
SRTO_LATENCY, &i_latency, sizeof(i_latency) );
/* set passphrase */
if (psz_passphrase != NULL && psz_passphrase[0] != '\0') {
......
......@@ -155,7 +155,7 @@ static bool srt_schedule_reconnect(sout_access_out_t *p_access)
/* Set latency */
srt_set_socket_option( access_obj, SRT_PARAM_LATENCY, p_sys->sock,
SRTO_TSBPDDELAY, &i_latency, sizeof(i_latency) );
SRTO_LATENCY, &i_latency, sizeof(i_latency) );
/* set passphrase */
if (psz_passphrase != NULL && psz_passphrase[0] != '\0') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment