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
724ed9f0
Commit
724ed9f0
authored
Jan 10, 2014
by
Emmanuel Milou
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
git+ssh://git.sflphone.org/var/repos/sflphone/git/sflphone
parents
f7e49a6b
c30347cc
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
daemon/src/audio/codecs/opus.cpp
+17
-5
17 additions, 5 deletions
daemon/src/audio/codecs/opus.cpp
daemon/src/sip/sipaccount.cpp
+1
-1
1 addition, 1 deletion
daemon/src/sip/sipaccount.cpp
gnome/src/config/tlsadvanceddialog.c
+1
-1
1 addition, 1 deletion
gnome/src/config/tlsadvanceddialog.c
with
19 additions
and
7 deletions
daemon/src/audio/codecs/opus.cpp
+
17
−
5
View file @
724ed9f0
...
...
@@ -83,28 +83,40 @@ Opus::getSDPChannels() const
int
Opus
::
decode
(
SFLAudioSample
*
dst
,
unsigned
char
*
buf
,
size_t
buffer_size
)
{
return
opus_decode
(
decoder_
,
buf
,
buffer_size
,
dst
,
FRAME_SIZE
,
0
);
const
int
ret
=
opus_decode
(
decoder_
,
buf
,
buffer_size
,
dst
,
FRAME_SIZE
,
0
);
if
(
ret
<
0
)
std
::
cerr
<<
opus_strerror
(
ret
)
<<
std
::
endl
;
return
ret
;
}
int
Opus
::
encode
(
unsigned
char
*
dst
,
SFLAudioSample
*
src
,
size_t
buffer_size
)
{
return
opus_encode
(
encoder_
,
src
,
FRAME_SIZE
,
dst
,
buffer_size
*
2
);
const
int
ret
=
opus_encode
(
encoder_
,
src
,
FRAME_SIZE
,
dst
,
buffer_size
*
2
);
if
(
ret
<
0
)
std
::
cerr
<<
opus_strerror
(
ret
)
<<
std
::
endl
;
return
ret
;
}
int
Opus
::
decode
(
std
::
vector
<
std
::
vector
<
SFLAudioSample
>
>
&
dst
,
unsigned
char
*
buf
,
size_t
buffer_size
)
{
if
(
buf
==
NULL
)
return
0
;
unsigned
samples
=
opus_decode
(
decoder_
,
buf
,
buffer_size
,
dst
[
0
].
data
(),
sizeof
(
SFLAudioSample
)
*
FRAME_SIZE
,
0
);
const
int
ret
=
opus_decode
(
decoder_
,
buf
,
buffer_size
,
dst
[
0
].
data
(),
sizeof
(
SFLAudioSample
)
*
FRAME_SIZE
,
0
);
if
(
ret
<
0
)
std
::
cerr
<<
opus_strerror
(
ret
)
<<
std
::
endl
;
return
samples
;
return
ret
;
}
int
Opus
::
encode
(
unsigned
char
*
dst
,
std
::
vector
<
std
::
vector
<
SFLAudioSample
>
>
&
src
,
size_t
buffer_size
)
{
if
(
dst
==
NULL
)
return
0
;
return
opus_encode
(
encoder_
,
src
[
0
].
data
(),
FRAME_SIZE
,
dst
,
buffer_size
*
sizeof
(
SFLAudioSample
));
const
int
ret
=
opus_encode
(
encoder_
,
src
[
0
].
data
(),
FRAME_SIZE
,
dst
,
buffer_size
*
sizeof
(
SFLAudioSample
));
if
(
ret
<
0
)
std
::
cerr
<<
opus_strerror
(
ret
)
<<
std
::
endl
;
return
ret
;
}
...
...
This diff is collapsed.
Click to expand it.
daemon/src/sip/sipaccount.cpp
+
1
−
1
View file @
724ed9f0
...
...
@@ -115,7 +115,7 @@ SIPAccount::SIPAccount(const std::string& accountID, bool presenceEnabled)
,
stunServer_
(
""
)
,
stunEnabled_
(
false
)
,
srtpEnabled_
(
false
)
,
srtpKeyExchange_
(
"
sdes
"
)
,
srtpKeyExchange_
(
""
)
,
srtpFallback_
(
false
)
,
zrtpDisplaySas_
(
true
)
,
zrtpDisplaySasOnce_
(
false
)
...
...
This diff is collapsed.
Click to expand it.
gnome/src/config/tlsadvanceddialog.c
+
1
−
1
View file @
724ed9f0
...
...
@@ -166,7 +166,7 @@ void show_advanced_tls_options(account_t *account, SFLPhoneClient *client)
gtk_grid_attach
(
GTK_GRID
(
grid
),
privateKeyFileChooser
,
1
,
5
,
1
,
1
);
if
(
!
tls_private_key_file
)
{
gtk_file_chooser_unselect_all
(
GTK_FILE_CHOOSER
(
caList
FileChooser
));
gtk_file_chooser_unselect_all
(
GTK_FILE_CHOOSER
(
privateKey
FileChooser
));
}
else
{
if
(
!*
tls_private_key_file
)
{
gtk_file_chooser_unselect_all
(
GTK_FILE_CHOOSER
(
privateKeyFileChooser
));
...
...
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