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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
561492a9
Commit
561492a9
authored
13 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
gnome: actions.c parameter doesn't have to be a double pointer
parent
4e6f29fa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gnome/src/actions.c
+11
-23
11 additions, 23 deletions
gnome/src/actions.c
gnome/src/actions.h
+1
-1
1 addition, 1 deletion
gnome/src/actions.h
with
12 additions
and
24 deletions
gnome/src/actions.c
+
11
−
23
View file @
561492a9
...
...
@@ -1050,40 +1050,29 @@ sflphone_rec_call()
void
sflphone_fill_codec_list
()
{
guint
account_list_size
;
guint
i
;
account_t
*
current
=
NULL
;
guint
account_list_size
=
account_list_get_size
();
DEBUG
(
"SFLphone: Fill codec list"
);
account_list_size
=
account_list_get_size
();
for
(
i
=
0
;
i
<
account_list_size
;
i
++
)
{
current
=
account_list_get_nth
(
i
);
for
(
guint
i
=
0
;
i
<
account_list_size
;
i
++
)
{
account_t
*
current
=
account_list_get_nth
(
i
);
if
(
current
)
sflphone_fill_codec_list_per_account
(
&
current
);
sflphone_fill_codec_list_per_account
(
current
);
}
}
void
sflphone_fill_codec_list_per_account
(
account_t
*
*
account
)
void
sflphone_fill_codec_list_per_account
(
account_t
*
account
)
{
gchar
**
order
;
gchar
**
pl
;
GQueue
*
codeclist
;
order
=
(
gchar
**
)
dbus_get_active_audio_codec_list
(
(
*
account
)
->
accountID
);
gchar
**
order
=
dbus_get_active_audio_codec_list
(
account
->
accountID
);
codeclist
=
(
*
account
)
->
codecs
;
GQueue
*
codeclist
=
account
->
codecs
;
// First clean the list
codec_list_clear
(
&
codeclist
);
codec_list_clear
(
&
codeclist
);
if
(
!
(
*
order
))
ERROR
(
"SFLphone: No codec list provided"
);
else
{
for
(
pl
=
order
;
*
pl
;
pl
++
)
{
for
(
gchar
**
pl
=
order
;
*
pl
;
pl
++
)
{
codec_t
*
cpy
=
NULL
;
// Each account will have a copy of the system-wide capabilities
...
...
@@ -1099,8 +1088,7 @@ void sflphone_fill_codec_list_per_account (account_t **account)
guint
caps_size
=
codec_list_get_size
();
guint
i
;
for
(
i
=
0
;
i
<
caps_size
;
i
++
)
{
for
(
guint
i
=
0
;
i
<
caps_size
;
i
++
)
{
codec_t
*
current_cap
=
capabilities_get_nth
(
i
);
// Check if this codec has already been enabled for this account
...
...
@@ -1109,7 +1097,7 @@ void sflphone_fill_codec_list_per_account (account_t **account)
codec_list_add
(
current_cap
,
&
codeclist
);
}
}
(
*
account
)
->
codecs
=
codeclist
;
account
->
codecs
=
codeclist
;
}
void
sflphone_fill_call_list
(
void
)
...
...
This diff is collapsed.
Click to expand it.
gnome/src/actions.h
+
1
−
1
View file @
561492a9
...
...
@@ -188,7 +188,7 @@ void sflphone_set_current_account();
*/
void
sflphone_fill_codec_list
();
void
sflphone_fill_codec_list_per_account
(
account_t
*
*
);
void
sflphone_fill_codec_list_per_account
(
account_t
*
);
void
sflphone_add_participant
();
...
...
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