mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-13 04:27:51 -05:00
module-rtp: Stop any ongoing timer when starting stream
This commit is contained in:
parent
5f3ae4376e
commit
2f22c1d595
2 changed files with 15 additions and 0 deletions
|
|
@ -450,6 +450,11 @@ done:
|
|||
}
|
||||
}
|
||||
|
||||
static void rtp_audio_stop_timer(struct impl *impl)
|
||||
{
|
||||
set_timer(impl, 0, 0);
|
||||
}
|
||||
|
||||
static void rtp_audio_flush_timeout(struct impl *impl, uint64_t expirations)
|
||||
{
|
||||
if (expirations > 1)
|
||||
|
|
@ -785,6 +790,7 @@ static int rtp_audio_init(struct impl *impl, struct pw_core *core, enum spa_dire
|
|||
impl->stream_events.process = rtp_audio_process_playback;
|
||||
|
||||
impl->receive_rtp = rtp_audio_receive;
|
||||
impl->stop_timer = rtp_audio_stop_timer;
|
||||
impl->flush_timeout = rtp_audio_flush_timeout;
|
||||
|
||||
setup_ptp_sender(impl, core, direction, ptp_driver);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue