mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
srt: Reduce useless call depth
Providing simplified _client_connect() is not required for now. https://bugzilla.gnome.org/show_bug.cgi?id=796842
This commit is contained in:
parent
aafdfdb5e4
commit
85d04e9335
4 changed files with 3 additions and 20 deletions
|
@ -33,7 +33,7 @@
|
|||
GST_DEBUG_CATEGORY (GST_CAT_DEFAULT);
|
||||
|
||||
SRTSOCKET
|
||||
gst_srt_client_connect_full (GstElement * elem, int sender,
|
||||
gst_srt_client_connect (GstElement * elem, int sender,
|
||||
const gchar * host, guint16 port, int rendez_vous,
|
||||
const gchar * bind_address, guint16 bind_port, int latency,
|
||||
GSocketAddress ** socket_address, gint * poll_id, gchar * passphrase,
|
||||
|
@ -165,17 +165,6 @@ failed:
|
|||
return SRT_INVALID_SOCK;
|
||||
}
|
||||
|
||||
SRTSOCKET
|
||||
gst_srt_client_connect (GstElement * elem, int sender,
|
||||
const gchar * host, guint16 port, int rendez_vous,
|
||||
const gchar * bind_address, guint16 bind_port, int latency,
|
||||
GSocketAddress ** socket_address, gint * poll_id)
|
||||
{
|
||||
return gst_srt_client_connect_full (elem, sender, host, port,
|
||||
rendez_vous, bind_address, bind_port, latency, socket_address, poll_id,
|
||||
NULL, 0);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
|
|
|
@ -38,12 +38,6 @@ G_BEGIN_DECLS
|
|||
|
||||
SRTSOCKET
|
||||
gst_srt_client_connect (GstElement * elem, int sender,
|
||||
const gchar * host, guint16 port, int rendez_vous,
|
||||
const gchar * bind_address, guint16 bind_port, int latency,
|
||||
GSocketAddress ** socket_address, gint * poll_id);
|
||||
|
||||
SRTSOCKET
|
||||
gst_srt_client_connect_full (GstElement * elem, int sender,
|
||||
const gchar * host, guint16 port, int rendez_vous,
|
||||
const gchar * bind_address, guint16 bind_port, int latency,
|
||||
GSocketAddress ** socket_address, gint * poll_id,
|
||||
|
|
|
@ -159,7 +159,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_full (GST_ELEMENT (sink), FALSE,
|
||||
priv->sock = gst_srt_client_connect (GST_ELEMENT (sink), FALSE,
|
||||
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);
|
||||
|
|
|
@ -238,7 +238,7 @@ gst_srt_client_src_start (GstBaseSrc * src)
|
|||
GstUri *uri = gst_uri_ref (base->uri);
|
||||
GSocketAddress *socket_address = NULL;
|
||||
|
||||
priv->sock = gst_srt_client_connect_full (GST_ELEMENT (src), FALSE,
|
||||
priv->sock = gst_srt_client_connect (GST_ELEMENT (src), FALSE,
|
||||
gst_uri_get_host (uri), gst_uri_get_port (uri), priv->rendez_vous,
|
||||
priv->bind_address, priv->bind_port, base->latency,
|
||||
&socket_address, &priv->poll_id, base->passphrase, base->key_length);
|
||||
|
|
Loading…
Reference in a new issue