aboutsummaryrefslogtreecommitdiffstats
path: root/rtpsource/rtpsource.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtpsource/rtpsource.c')
-rw-r--r--rtpsource/rtpsource.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/rtpsource/rtpsource.c b/rtpsource/rtpsource.c
index 3087262..d5ffce5 100644
--- a/rtpsource/rtpsource.c
+++ b/rtpsource/rtpsource.c
@@ -63,11 +63,10 @@ struct rtp_connection *find_connection_by_cname(struct rtpsource_state *rss, con
}
/* create a new RTP connection for given CNAME; includes binding of local RTP port */
-struct rtp_connection *create_connection(struct rtpsource_state *rss, const char *cname)
+struct rtp_connection *create_connection(struct rtpsource_state *rss, const char *cname, enum codec_type codec)
{
const struct rtp_provider *rtp_prov;
struct rtp_connection *conn;
- enum codec_type codec = CODEC_GSM_FR; // TODO: configurable
const char *host;
int port;
int rc;
@@ -101,8 +100,8 @@ struct rtp_connection *create_connection(struct rtpsource_state *rss, const char
llist_add_tail(&conn->list, &rss->connections);
- CLOGP(conn, DMAIN, LOGL_INFO, "Created RTP connection; local=%s:%u\n",
- conn->local_host, conn->local_port);
+ CLOGP(conn, DMAIN, LOGL_INFO, "Created RTP connection; local=%s:%u; codec=%s\n",
+ conn->local_host, conn->local_port, get_value_string(codec_type_names, codec));
return conn;