mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
srt: Move off deprecated srt_socket()
.
See73ee1e1a3e/docs/API-functions.md (srt_socket)
`srt_create_socket()` was added in4b897ba92d
and srt `v1.3.0` is the first release that has it. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1659>
This commit is contained in:
parent
4e26b447f6
commit
13c8bda531
2 changed files with 3 additions and 3 deletions
|
@ -866,7 +866,7 @@ gst_srt_object_wait_connect (GstSRTObject * srtobject,
|
|||
|
||||
g_clear_object (&bind_addr);
|
||||
|
||||
sock = srt_socket (bind_sa_family, SOCK_DGRAM, 0);
|
||||
sock = srt_create_socket ();
|
||||
if (sock == SRT_INVALID_SOCK) {
|
||||
g_set_error (error, GST_LIBRARY_ERROR, GST_LIBRARY_ERROR_INIT, "%s",
|
||||
srt_getlasterror_str ());
|
||||
|
@ -943,7 +943,7 @@ gst_srt_object_connect (GstSRTObject * srtobject, GCancellable * cancellable,
|
|||
bool sender;
|
||||
bool rendezvous;
|
||||
|
||||
sock = srt_socket (sa_family, SOCK_DGRAM, 0);
|
||||
sock = srt_create_socket ();
|
||||
if (sock == SRT_INVALID_SOCK) {
|
||||
g_set_error (error, GST_LIBRARY_ERROR, GST_LIBRARY_ERROR_INIT, "%s",
|
||||
srt_getlasterror_str ());
|
||||
|
|
|
@ -9,7 +9,7 @@ if srt_option.disabled()
|
|||
subdir_done()
|
||||
endif
|
||||
|
||||
srt_dep = dependency('srt', required : false)
|
||||
srt_dep = dependency('srt', version : '>=1.3.0', required : false)
|
||||
if not srt_dep.found() and cc.has_header_symbol('srt/srt.h', 'srt_startup')
|
||||
srt_dep = cc.find_library('srt', required : false)
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue