Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
J
jami-daemon
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
124
Issues
124
List
Boards
Labels
Milestones
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
savoirfairelinux
jami-daemon
Commits
d17e3dcb
Commit
d17e3dcb
authored
Aug 02, 2012
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sdp: cosmetics
parent
0e07789f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
daemon/src/sip/sdp.cpp
daemon/src/sip/sdp.cpp
+7
-5
No files found.
daemon/src/sip/sdp.cpp
View file @
d17e3dcb
...
...
@@ -466,9 +466,10 @@ string Sdp::getIncomingVideoDescription() const
if
(
not
profileLevelID
.
empty
())
ss
<<
"a=fmtp:"
<<
payload_num
<<
" "
<<
profileLevelID
<<
std
::
endl
;
unsigned
videoIdx
;
for
(
videoIdx
=
0
;
videoIdx
<
activeLocalSession_
->
media_count
and
pj_stricmp2
(
&
activeLocalSession_
->
media
[
videoIdx
]
->
desc
.
media
,
"video"
)
!=
0
;
++
videoIdx
)
;
unsigned
videoIdx
=
0
;
while
(
videoIdx
<
activeLocalSession_
->
media_count
and
pj_stricmp2
(
&
activeLocalSession_
->
media
[
videoIdx
]
->
desc
.
media
,
"video"
)
!=
0
)
++
videoIdx
;
if
(
videoIdx
==
activeLocalSession_
->
media_count
)
{
DEBUG
(
"No video present in local session"
);
...
...
@@ -554,9 +555,10 @@ Sdp::getProfileLevelID(const pjmedia_sdp_session *session,
const
size_t
DIGITS_IN_PROFILE_LEVEL_ID
=
6
;
const
size_t
needleLength
=
needle
.
size
()
+
DIGITS_IN_PROFILE_LEVEL_ID
;
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
);
DEBUG
(
"Using %s"
,
profile
.
c_str
());
DEBUG
(
"Using %s"
,
profile
.
c_str
());
}
}
void
Sdp
::
addSdesAttribute
(
const
vector
<
std
::
string
>&
crypto
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment