diff options
author | Seungha Yang <seungha.yang@navercorp.com> | 2018-07-20 14:05:32 +0900 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2018-07-30 16:44:51 -0400 |
commit | 85d04e9335bf749bdf5ebe393dcff3ce7fed327e (patch) | |
tree | 742247f8c04c2f585ed8956a20336d7d1ac0b48e /ext | |
parent | aafdfdb5e49d9a7bbac0302830c7fd4e02e2cebe (diff) |
srt: Reduce useless call depth
Providing simplified _client_connect() is not required for now.
https://bugzilla.gnome.org/show_bug.cgi?id=796842
Diffstat (limited to 'ext')
-rw-r--r-- | ext/srt/gstsrt.c | 13 | ||||
-rw-r--r-- | ext/srt/gstsrt.h | 6 | ||||
-rw-r--r-- | ext/srt/gstsrtclientsink.c | 2 | ||||
-rw-r--r-- | ext/srt/gstsrtclientsrc.c | 2 |
4 files changed, 3 insertions, 20 deletions
diff --git a/ext/srt/gstsrt.c b/ext/srt/gstsrt.c index 39ccfdf15..bdf21b99f 100644 --- a/ext/srt/gstsrt.c +++ b/ext/srt/gstsrt.c @@ -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) { diff --git a/ext/srt/gstsrt.h b/ext/srt/gstsrt.h index 6fe5680bc..8d58a71fc 100644 --- a/ext/srt/gstsrt.h +++ b/ext/srt/gstsrt.h @@ -40,12 +40,6 @@ 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, gchar * passphrase, int key_length); diff --git a/ext/srt/gstsrtclientsink.c b/ext/srt/gstsrtclientsink.c index 92e10878a..471171e8a 100644 --- a/ext/srt/gstsrtclientsink.c +++ b/ext/srt/gstsrtclientsink.c @@ -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); diff --git a/ext/srt/gstsrtclientsrc.c b/ext/srt/gstsrtclientsrc.c index e54dda67a..e1e627ff0 100644 --- a/ext/srt/gstsrtclientsrc.c +++ b/ext/srt/gstsrtclientsrc.c @@ -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); |