summaryrefslogtreecommitdiff
path: root/pjmedia/src/pjmedia/stream_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjmedia/src/pjmedia/stream_info.c')
-rw-r--r--pjmedia/src/pjmedia/stream_info.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/pjmedia/src/pjmedia/stream_info.c b/pjmedia/src/pjmedia/stream_info.c
index ada8b79a..5baa5462 100644
--- a/pjmedia/src/pjmedia/stream_info.c
+++ b/pjmedia/src/pjmedia/stream_info.c
@@ -32,12 +32,6 @@ static const pj_str_t ID_RTP_SAVP = { "RTP/SAVP", 8 };
static const pj_str_t ID_RTPMAP = { "rtpmap", 6 };
static const pj_str_t ID_TELEPHONE_EVENT = { "telephone-event", 15 };
-static const pj_str_t STR_INACTIVE = { "inactive", 8 };
-static const pj_str_t STR_SENDRECV = { "sendrecv", 8 };
-static const pj_str_t STR_SENDONLY = { "sendonly", 8 };
-static const pj_str_t STR_RECVONLY = { "recvonly", 8 };
-
-
/*
* Internal function for collecting codec info and param from the SDP media.
*/
@@ -325,6 +319,10 @@ PJ_DEF(pj_status_t) pjmedia_stream_info_from_sdp(
const pjmedia_sdp_session *remote,
unsigned stream_idx)
{
+ const pj_str_t STR_INACTIVE = { "inactive", 8 };
+ const pj_str_t STR_SENDONLY = { "sendonly", 8 };
+ const pj_str_t STR_RECVONLY = { "recvonly", 8 };
+
pjmedia_codec_mgr *mgr;
const pjmedia_sdp_attr *attr;
const pjmedia_sdp_media *local_m;