Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

aubuf overruns on startup #44

Merged
merged 2 commits into from
May 7, 2022
Merged

Conversation

cspiel1
Copy link
Collaborator

@cspiel1 cspiel1 commented May 5, 2022

For multicast listeners there had been overruns at startup of a stream because of late start of player thread. In order to make aubuf independent from start time relation between write and read threads a started flag was added.

  • aubuf: add a started flag
  • docs: add aubuf plots for multicast

Relates to baresip/retest#64

If the reader thread starts late, the buffer should not be filled over the min
value.
@cspiel1
Copy link
Collaborator Author

cspiel1 commented May 5, 2022

@sreimers Please could you restart the tests? retest is fixed, with related PR.

@sreimers
Copy link
Member

sreimers commented May 5, 2022

Done

@sreimers
Copy link
Member

sreimers commented May 5, 2022

Looks like they are still failing. The branch detection (PR checkout) looks good at a first look:

Cloning into 'retest'...
From https://github.com/baresip/retest
 * [new ref]         refs/pull/64/head -> aubuf_overrun_on_startup
Switched to branch 'aubuf_overrun_on_startup'

@cspiel1
Copy link
Collaborator Author

cspiel1 commented May 5, 2022

I can't reproduce the failure in the github action on my dev host.
The rem branch checked out seems to be the right one.
Does it make a difference if it is build via clang or cmake?

@cspiel1
Copy link
Collaborator Author

cspiel1 commented May 5, 2022

Okay, found how to reproduce this:

cd rem
make CC=clang
sudo make CC=clang install

cd ../retest
make CC=clang

./retest -r

@cspiel1 cspiel1 force-pushed the aubuf_overrun_on_startup branch from 2a44f3c to c03763b Compare May 5, 2022 15:01
@sreimers sreimers merged commit 0a91a77 into baresip:main May 7, 2022
@cspiel1 cspiel1 deleted the aubuf_overrun_on_startup branch May 7, 2022 17:46
wip-sync pushed a commit to NetBSD/pkgsrc-wip that referenced this pull request Jul 18, 2022
Partial changelog:

== [v2.5.0] - 2022-07-01

== What's Changed
* ci/build: fix macOS openssl path by @sreimers in baresip/rem#59
* vidmix: use C11 mutex by @alfredh in baresip/rem#58
* aubuf: fix possible data race warning by @cspiel1 in baresip/rem#61
* aubuf: C11 mutex by @alfredh in baresip/rem#62
* ajb: C11 mutex by @alfredh in baresip/rem#63
* aubuf: correct ajb reset on frame drop and on underruns by @cspiel1 in baresip/rem#64
* aubuf: better support for different put/get ptime by @cspiel1 in baresip/rem#65

---

== [v2.4.0] - 2022-06-01

=== What's Changed
* aubuf overruns on startup by @cspiel1 in baresip/rem#44
* h265: move from rem to re by @alfredh in baresip/rem#45
* aubuf: do not drop frames if max size was not set by @cspiel1 in baresip/rem#47
* h264: move from rem to re by @alfredh in baresip/rem#46
* vidmix win32 fixes by @sreimers in baresip/rem#49
* aumix: use new libre thread api by @sreimers in baresip/rem#48
* aubuf/ajb: fix possible null pointer deref by @sreimers in baresip/rem#50
* Fade in on underrun and reset ajb by @cspiel1 in baresip/rem#51
* aubuf: add null pointer checks by @cspiel1 in baresip/rem#52
* auconv: add auconv_to_float() by @alfredh in baresip/rem#53
* audio: add optional decoding buffer by @cspiel1 in baresip/rem#54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants