Closed
Bug 752401
Opened 13 years ago
Closed 12 years ago
Additional changes to PulseAudio cubeb backend
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: kinetik, Assigned: kinetik)
References
Details
Attachments
(1 file, 2 obsolete files)
12.58 KB,
patch
|
cajbir
:
review+
jesup
:
review+
|
Details | Diff | Splinter Review |
Following on from bug 751030, there's some additional work to be done. See the comments from Michael and Arun in that bug for details, but the short version is:
- fix the deadlock caused by mainloop lock vs nsBufferedAudioStream lock ordering in the data_callback vs get_position calls.
- make bad stream state and PA API failures non fatal and signal them via state_callback with CUBEB_STREAM_ERROR.
- change minreq calculation to tlength / 4, and add a comment explaining the voodoo.
- fix the errors in the stream refill callback's calculation of buffer_fill/buffer_time.
Assignee | ||
Comment 1•13 years ago
|
||
(In reply to Matthew Gregan [:kinetik] from comment #0)
> - fix the deadlock caused by mainloop lock vs nsBufferedAudioStream lock
> ordering in the data_callback vs get_position calls.
This one ceases to be a problem with the patch from bug 757707, since that avoids holding the stream lock over calls to cubeb.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → kinetik
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•12 years ago
|
||
Tests pass locally, waiting for try results: https://tbpl.mozilla.org/?tree=Try&rev=562da81de3d8
Assignee | ||
Comment 3•12 years ago
|
||
Pushed the wrong version. Second attempt: https://tbpl.mozilla.org/?tree=Try&rev=1eb9ab68d921
Attachment #709549 -
Attachment is obsolete: true
Assignee | ||
Comment 4•12 years ago
|
||
Unregister state callbacks during destruction. Since the state callbacks were changed to depend on cubeb-allocated userdata (cubeb and cubeb_stream), it's no longer safe for the state callback to run after the userdata has been freed. Try: https://tbpl.mozilla.org/?tree=Try&rev=967bf9ccda40
Attachment #709563 -
Attachment is obsolete: true
Assignee | ||
Comment 5•12 years ago
|
||
Comment on attachment 710018 [details] [diff] [review]
patch v2
This is nice and green.
I've included Randell as a reviewer for the WebRTC signaling tests makefile. I changed it to match the ALSA/PulseAudio logic in libxul's makefile.
Attachment #710018 -
Flags: review?(rjesup)
Attachment #710018 -
Flags: review?(chris.double)
Updated•12 years ago
|
Attachment #710018 -
Flags: review?(chris.double) → review+
Updated•12 years ago
|
Attachment #710018 -
Flags: review?(rjesup) → review+
Assignee | ||
Comment 6•12 years ago
|
||
Comment 7•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in
before you can comment on or make changes to this bug.
Description
•