gecko-dev/media/libcubeb
Paul Adenot 5098817b4c Bug 1127213 - Fix various issues with the device change notification in the WASAPI cubeb backend. r=kinetik
This patch does the following:
- Introduces an owned_critical_section object to be able to assert that a
  current thread owns a critical section
- Change the auto_lock to use the above, add auto_unlock (basically like the
  Gecko AutoEnter/AutoExit things)
- Fix an issue during audio output device switch where the clock would use the
  old sample rate. Apparently I did not notice this because my headset and the
  sound card on this laptop have the same rate
- Check that we could acquire a device_enumerator in the ctor before
  deallocating in the dtor, as that can happen if a ton of streams are running at
  once (I had this issue running the full mochitest suite)
- Stop getting another device_enumator in unregister_notification_client, fixing a leak
- Assert that setup_wasapi_stream and close_wasapi_stream are called with the lock held, this was the cause of the crash for this bug
- Make close_wasapi_stream clear out its state to make sure setup_wasapi_stream
  and close_wasapi_stream are called in the right order (especially, not two
  setup_wasapi_stream without close in between, since that would leak stuff)
- In wasapi_stream_destroy, unregister the notification client before destroying
  the CRITICAL_SECTION (this was the cause of a crash I duped against this bug)
2015-02-09 14:42:43 +01:00
..
include Bug 1105901 - Update cubeb from upstream to pick up compilation fix for glibc 2.20. r=padenot 2014-12-02 12:04:16 +13:00
src Bug 1127213 - Fix various issues with the device change notification in the WASAPI cubeb backend. r=kinetik 2015-02-09 14:42:43 +01:00
tests Bug 1105901 - Update cubeb from upstream to pick up compilation fix for glibc 2.20. r=padenot 2014-12-02 12:04:16 +13:00
AUTHORS Bug 939593 - Resync libcubeb with upstream. r=kinetik 2013-11-18 11:47:24 +13:00
LICENSE
moz.build Bug 1043802 - Remove TOOLS_DIRS and TEST_TOOLS_DIRS. r=gps 2014-07-29 08:55:55 +09:00
README_MOZILLA Bug 1105901 - Update cubeb from upstream to pick up compilation fix for glibc 2.20. r=padenot 2014-12-02 12:04:16 +13:00
README.md Bug 1074010 - Update cubeb from upstream. r=padenot 2014-09-29 13:19:09 +13:00
update.sh Bug 1074010 - Update cubeb from upstream. r=padenot 2014-09-29 13:19:09 +13:00

Build Status

See INSTALL for build instructions.

Licensed under an ISC-style license. See LICENSE for details.