Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
039a3cf4
Commit
039a3cf4
authored
11 years ago
by
Alexandre Lision
Browse files
Options
Downloads
Patches
Plain Diff
* #31884: working codec reordering
parent
4b4233a5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/org/sflphone/service/SipService.java
+25
-8
25 additions, 8 deletions
src/org/sflphone/service/SipService.java
with
25 additions
and
8 deletions
src/org/sflphone/service/SipService.java
+
25
−
8
View file @
039a3cf4
...
...
@@ -1041,22 +1041,39 @@ public class SipService extends Service {
Log
.
i
(
TAG
,
"SipService.getAudioCodecList() thread running..."
);
ArrayList
<
Codec
>
results
=
new
ArrayList
<
Codec
>();
IntVect
payloads
=
configurationManagerJNI
.
getAudioCodecList
();
IntVect
active_payloads
=
configurationManagerJNI
.
getActiveAudioCodecList
(
accountID
);
for
(
int
i
=
0
;
i
<
active_payloads
.
size
();
++
i
)
{
for
(
int
i
=
0
;
i
<
payloads
.
size
();
++
i
)
{
results
.
add
(
new
Codec
(
payloads
.
get
(
i
),
configurationManagerJNI
.
getAudioCodecDetails
(
payloads
.
get
(
i
)),
false
));
results
.
add
(
new
Codec
(
active_payloads
.
get
(
i
),
configurationManagerJNI
.
getAudioCodecDetails
(
active_payloads
.
get
(
i
)),
true
));
if
(
results
.
get
(
i
).
getName
().
length
()
==
0
)
results
.
remove
(
i
);
}
// if (results.get(active_payloads.get(i)) != null) {
// results.get(active_payloads.get(i)).setEnabled(true);
IntVect
active_payloads
=
configurationManagerJNI
.
getActiveAudioCodecList
(
accountID
);
for
(
int
i
=
0
;
i
<
active_payloads
.
size
();
++
i
)
{
IntVect
payloads
=
configurationManagerJNI
.
getAudioCodecList
();
for
(
int
i
=
0
;
i
<
payloads
.
size
();
++
i
)
{
boolean
isActive
=
false
;
for
(
Codec
co
:
results
)
{
if
(
co
.
getPayload
().
toString
().
contentEquals
(
String
.
valueOf
(
payloads
.
get
(
i
))))
isActive
=
true
;
for
(
Codec
co
:
results
){
if
(
co
.
getPayload
().
toString
().
contentEquals
(
String
.
valueOf
(
active_payloads
.
get
(
i
))))
co
.
setEnabled
(
true
);
}
if
(
isActive
)
continue
;
else
results
.
add
(
new
Codec
(
payloads
.
get
(
i
),
configurationManagerJNI
.
getAudioCodecDetails
(
payloads
.
get
(
i
)),
false
));
}
// if (!results.containsKey(payloads.get(i))) {
// results.put(payloads.get(i), new Codec(payloads.get(i), configurationManagerJNI.getAudioCodecDetails(payloads.get(i)), false));
// Log.i(TAG, "Other, Adding:" + results.get((payloads.get(i))).getName());
// }
return
results
;
}
}
...
...
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