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
8b770d0f
Commit
8b770d0f
authored
14 years ago
by
asavard
Browse files
Options
Downloads
Patches
Plain Diff
[#4367] Fix AudioRtpclass using TRTPSessionBase
parent
e5ddc0f1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sflphone-common/src/audio/audiortp/AudioRtpSession.cpp
+10
-5
10 additions, 5 deletions
sflphone-common/src/audio/audiortp/AudioRtpSession.cpp
sflphone-common/src/audio/audiortp/AudioRtpSession.h
+2
-1
2 additions, 1 deletion
sflphone-common/src/audio/audiortp/AudioRtpSession.h
with
12 additions
and
6 deletions
sflphone-common/src/audio/audiortp/AudioRtpSession.cpp
+
10
−
5
View file @
8b770d0f
...
...
@@ -42,7 +42,12 @@ namespace sfl
{
AudioRtpSession
::
AudioRtpSession
(
ManagerImpl
*
manager
,
SIPCall
*
sipcall
)
:
ost
::
SymmetricRTPSession
(
ost
::
InetHostAddress
(
sipcall
->
getLocalIp
().
c_str
()),
sipcall
->
getLocalAudioPort
()),
// ost::SymmetricRTPSession (ost::InetHostAddress (sipcall->getLocalIp().c_str()), sipcall->getLocalAudioPort()),
TRTPSessionBase
<
ost
::
DualRTPUDPIPv4Channel
,
ost
::
DualRTPUDPIPv4Channel
,
ost
::
AVPQueue
>
(
ost
::
InetHostAddress
(
sipcall
->
getLocalIp
().
c_str
()),
sipcall
->
getLocalAudioPort
(),
0
,
ost
::
MembershipBookkeeping
::
defaultMembersHashSize
,
ost
::
defaultApplication
()),
AudioRtpRecordHandler
(
manager
,
sipcall
)
,
_time
(
new
ost
::
Time
())
,
_mainloopSemaphore
(
0
)
...
...
@@ -53,7 +58,7 @@ AudioRtpSession::AudioRtpSession (ManagerImpl * manager, SIPCall * sipcall) :
,
_countNotificationTime
(
0
)
,
_ca
(
sipcall
)
{
this
->
setCancel
(
cancelDefault
);
static_cast
<
ost
::
Thread
*>
(
this
)
->
setCancel
(
cancelDefault
);
assert
(
_ca
);
...
...
@@ -66,7 +71,7 @@ AudioRtpSession::~AudioRtpSession()
_debug
(
"AudioRtpSession: Delete AudioRtpSession instance"
);
try
{
this
->
terminate
();
static_cast
<
ost
::
Thread
*>
(
this
)
->
terminate
();
}
catch
(...)
{
_debugException
(
"AudioRtpSession: Thread destructor didn't terminate correctly"
);
throw
;
...
...
@@ -266,7 +271,7 @@ int AudioRtpSession::startRtpThread (AudioCodec* audiocodec)
setSessionTimeouts
();
setSessionMedia
(
audiocodec
);
initBuffers
();
int
ret
=
this
->
start
(
_mainloopSemaphore
);
int
ret
=
static_cast
<
ost
::
Thread
*>
(
this
)
->
start
(
_mainloopSemaphore
);
this
->
startRunning
();
return
ret
;
}
...
...
@@ -299,7 +304,7 @@ void AudioRtpSession::run ()
_debug
(
"AudioRtpSession: Entering mainloop for call %s"
,
_ca
->
getCallId
().
c_str
());
while
(
!
testCancel
())
{
while
(
!
static_cast
<
ost
::
Thread
*>
(
this
)
->
testCancel
())
{
// Reset timestamp to make sure the timing information are up to date
if
(
_timestampCount
>
RTP_TIMESTAMP_RESET_FREQ
)
{
...
...
This diff is collapsed.
Click to expand it.
sflphone-common/src/audio/audiortp/AudioRtpSession.h
+
2
−
1
View file @
8b770d0f
...
...
@@ -57,7 +57,8 @@ namespace sfl
{
// class AudioRtpSession : public ost::Thread, public ost::TimerPort, public AudioRtpRecordHandler, public ost::SymmetricRTPSession
class
AudioRtpSession
:
public
ost
::
TimerPort
,
public
ost
::
SymmetricRTPSession
,
public
AudioRtpRecordHandler
// class AudioRtpSession : public ost::Thread, public ost::TimerPort, public ost::SymmetricRTPSession, public AudioRtpRecordHandler
class
AudioRtpSession
:
public
ost
::
Thread
,
public
ost
::
TimerPort
,
public
AudioRtpRecordHandler
,
public
ost
::
TRTPSessionBase
<
ost
::
DualRTPUDPIPv4Channel
,
ost
::
DualRTPUDPIPv4Channel
,
ost
::
AVPQueue
>
{
public:
/**
...
...
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