summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSeungha Yang <seungha.yang@navercorp.com>2018-07-25 10:44:20 +0900
committerOlivier CrĂȘte <olivier.crete@collabora.com>2018-07-30 16:50:10 -0400
commit728b116fdb2c1817810b08a3f250c954c508bfe6 (patch)
treeabc5788e99a14b5c5c6c759c47f2fc6cf37c55ff /ext
parent82467a49b9a10eca7ccba0238fadabb0fac19585 (diff)
srt: Add "const" keyword to a function argument
Given "passphrase" shouldn't be modified https://bugzilla.gnome.org/show_bug.cgi?id=796842
Diffstat (limited to 'ext')
-rw-r--r--ext/srt/gstsrt.c2
-rw-r--r--ext/srt/gstsrt.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/srt/gstsrt.c b/ext/srt/gstsrt.c
index 53c8f51e2..e845b1498 100644
--- a/ext/srt/gstsrt.c
+++ b/ext/srt/gstsrt.c
@@ -36,7 +36,7 @@ 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, gchar * passphrase,
+ GSocketAddress ** socket_address, gint * poll_id, const gchar * passphrase,
int key_length)
{
SRTSOCKET sock = SRT_INVALID_SOCK;
diff --git a/ext/srt/gstsrt.h b/ext/srt/gstsrt.h
index 2b0381e17..776593ed6 100644
--- a/ext/srt/gstsrt.h
+++ b/ext/srt/gstsrt.h
@@ -41,7 +41,7 @@ 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, int key_length);
+ const gchar * passphrase, int key_length);
SRTSOCKET
gst_srt_server_listen (GstElement * elem, int sender,