mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
srtclientsink: Fix SRT socket option setting
SRTClientSink is sender https://bugzilla.gnome.org/show_bug.cgi?id=796842
This commit is contained in:
parent
32140dcb84
commit
fa75487e98
2 changed files with 1 additions and 2 deletions
|
@ -81,7 +81,6 @@ gst_srt_client_connect (GstElement * elem, int sender,
|
|||
srt_setsockopt (sock, 0, SRTO_TSBPDMODE, &(int) {
|
||||
1}, sizeof (int));
|
||||
|
||||
/* This is a sink, we're always a receiver */
|
||||
srt_setsockopt (sock, 0, SRTO_SENDER, &sender, sizeof (int));
|
||||
|
||||
srt_setsockopt (sock, 0, SRTO_TSBPDDELAY, &latency, sizeof (int));
|
||||
|
|
|
@ -170,7 +170,7 @@ gst_srt_client_sink_start (GstBaseSink * sink)
|
|||
GstSRTBaseSink *base = GST_SRT_BASE_SINK (sink);
|
||||
GstUri *uri = gst_uri_ref (GST_SRT_BASE_SINK (self)->uri);
|
||||
|
||||
priv->sock = gst_srt_client_connect (GST_ELEMENT (sink), FALSE,
|
||||
priv->sock = gst_srt_client_connect (GST_ELEMENT (sink), TRUE,
|
||||
gst_uri_get_host (uri), gst_uri_get_port (uri), priv->rendez_vous,
|
||||
priv->bind_address, priv->bind_port, base->latency,
|
||||
&priv->sockaddr, &priv->poll_id, base->passphrase, base->key_length);
|
||||
|
|
Loading…
Reference in a new issue