Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
liblinphone
Commits
0c2c5f65
Commit
0c2c5f65
authored
13 years ago
by
Simon Morlat
Browse files
Options
Download
Patches
Plain Diff
update ms2 for conferencing cleanups
parent
22cdda2a
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
coreapi/conference.c
+9
-9
coreapi/conference.c
mediastreamer2
+1
-1
mediastreamer2
with
10 additions
and
10 deletions
coreapi/conference.c
+
9
−
9
View file @
0c2c5f65
...
...
@@ -28,6 +28,8 @@
#include
"mediastreamer2/msvolume.h"
static
int
convert_conference_to_call
(
LinphoneCore
*
lc
);
static
void
conference_check_init
(
LinphoneConference
*
ctx
,
int
samplerate
){
if
(
ctx
->
conf
==
NULL
){
MSAudioConferenceParams
params
;
...
...
@@ -48,24 +50,22 @@ static void remove_local_endpoint(LinphoneConference *ctx){
}
static
int
remote_participants_count
(
LinphoneConference
*
ctx
)
{
if
(
!
ctx
->
conf
||
ctx
->
conf
->
nmembers
==
0
)
return
0
;
if
(
!
ctx
->
local_participant
)
return
ctx
->
conf
->
nmembers
;
return
ctx
->
conf
->
nmembers
-
1
;
if
(
!
ctx
->
conf
||
ms_audio_conference_get_size
(
ctx
->
conf
)
==
0
)
return
0
;
if
(
!
ctx
->
local_participant
)
return
ms_audio_conference_get_size
(
ctx
->
conf
)
;
return
ms_audio_conference_get_size
(
ctx
->
conf
)
-
1
;
}
static
int
convert_conference_to_call
(
LinphoneCore
*
lc
);
void
linphone_core_conference_check_uninit
(
LinphoneCore
*
lc
){
LinphoneConference
*
ctx
=&
lc
->
conf_ctx
;
if
(
ctx
->
conf
){
ms_message
(
"conference_check_uninit(): nmembers=%i"
,
ctx
->
conf
->
nmembers
);
ms_message
(
"conference_check_uninit(): nmembers=%i"
,
ms_audio_conference_get_size
(
ctx
->
conf
)
);
if
(
remote_participants_count
(
ctx
)
==
1
){
convert_conference_to_call
(
lc
);
}
if
(
ctx
->
conf
->
nmembers
==
1
)
if
(
ctx
->
conf
->
nmembers
==
1
&&
ctx
->
local_participant
!=
NULL
){
if
(
ms_audio_conference_get_size
(
ctx
->
conf
)
==
1
&&
ctx
->
local_participant
!=
NULL
){
remove_local_endpoint
(
ctx
);
}
if
(
ctx
->
conf
->
nmembers
==
0
){
if
(
ms_audio_conference_get_size
(
ctx
->
conf
)
==
0
){
ms_audio_conference_destroy
(
ctx
->
conf
);
ctx
->
conf
=
NULL
;
}
...
...
@@ -298,5 +298,5 @@ int linphone_core_terminate_conference(LinphoneCore *lc) {
}
int
linphone_core_get_conference_size
(
LinphoneCore
*
lc
)
{
return
ms_audio_conference_size
(
lc
->
conf_ctx
.
conf
);
return
ms_audio_conference_
get_
size
(
lc
->
conf_ctx
.
conf
);
}
This diff is collapsed.
Click to expand it.
mediastreamer2
@
c1f6d3e6
Subproject commit
698cadf4ed473f4d1291238852492222209916da
Subproject commit
c1f6d3e6d4f36928fffd2e7380759544bcd23d84
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets