Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
d17e3dcb
Project 'savoirfairelinux/ring-daemon' was moved to 'savoirfairelinux/jami-daemon'. Please update any links and bookmarks that may still have the old path.
Commit
d17e3dcb
authored
12 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
sdp: cosmetics
parent
0e07789f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
daemon/src/sip/sdp.cpp
+7
-5
7 additions, 5 deletions
daemon/src/sip/sdp.cpp
with
7 additions
and
5 deletions
daemon/src/sip/sdp.cpp
+
7
−
5
View file @
d17e3dcb
...
@@ -466,9 +466,10 @@ string Sdp::getIncomingVideoDescription() const
...
@@ -466,9 +466,10 @@ string Sdp::getIncomingVideoDescription() const
if
(
not
profileLevelID
.
empty
())
if
(
not
profileLevelID
.
empty
())
ss
<<
"a=fmtp:"
<<
payload_num
<<
" "
<<
profileLevelID
<<
std
::
endl
;
ss
<<
"a=fmtp:"
<<
payload_num
<<
" "
<<
profileLevelID
<<
std
::
endl
;
unsigned
videoIdx
;
unsigned
videoIdx
=
0
;
for
(
videoIdx
=
0
;
videoIdx
<
activeLocalSession_
->
media_count
and
pj_stricmp2
(
&
activeLocalSession_
->
media
[
videoIdx
]
->
desc
.
media
,
"video"
)
!=
0
;
++
videoIdx
)
while
(
videoIdx
<
activeLocalSession_
->
media_count
and
;
pj_stricmp2
(
&
activeLocalSession_
->
media
[
videoIdx
]
->
desc
.
media
,
"video"
)
!=
0
)
++
videoIdx
;
if
(
videoIdx
==
activeLocalSession_
->
media_count
)
{
if
(
videoIdx
==
activeLocalSession_
->
media_count
)
{
DEBUG
(
"No video present in local session"
);
DEBUG
(
"No video present in local session"
);
...
@@ -554,10 +555,11 @@ Sdp::getProfileLevelID(const pjmedia_sdp_session *session,
...
@@ -554,10 +555,11 @@ Sdp::getProfileLevelID(const pjmedia_sdp_session *session,
const
size_t
DIGITS_IN_PROFILE_LEVEL_ID
=
6
;
const
size_t
DIGITS_IN_PROFILE_LEVEL_ID
=
6
;
const
size_t
needleLength
=
needle
.
size
()
+
DIGITS_IN_PROFILE_LEVEL_ID
;
const
size_t
needleLength
=
needle
.
size
()
+
DIGITS_IN_PROFILE_LEVEL_ID
;
const
size_t
pos
=
fmtpLine
.
find
(
needle
);
const
size_t
pos
=
fmtpLine
.
find
(
needle
);
if
(
pos
!=
std
::
string
::
npos
and
fmtpLine
.
size
()
>=
(
pos
+
needleLength
))
if
(
pos
!=
std
::
string
::
npos
and
fmtpLine
.
size
()
>=
(
pos
+
needleLength
))
{
profile
=
fmtpLine
.
substr
(
pos
,
needleLength
);
profile
=
fmtpLine
.
substr
(
pos
,
needleLength
);
DEBUG
(
"Using %s"
,
profile
.
c_str
());
DEBUG
(
"Using %s"
,
profile
.
c_str
());
}
}
}
void
Sdp
::
addSdesAttribute
(
const
vector
<
std
::
string
>&
crypto
)
void
Sdp
::
addSdesAttribute
(
const
vector
<
std
::
string
>&
crypto
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment