зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1500468 - Return not supported error as a stop-gap solution for Linux enumerate devices. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D9264 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
36e3215092
Коммит
4241de0429
|
@ -270,7 +270,7 @@ impl ContextOps for ClientContext {
|
||||||
_user_ptr: *mut c_void,
|
_user_ptr: *mut c_void,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
assert_not_in_callback();
|
assert_not_in_callback();
|
||||||
Ok(())
|
Err(Error::not_supported())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
diff --git a/media/audioipc/client/src/context.rs b/media/audioipc/client/src/context.rs
|
||||||
|
--- a/media/audioipc/client/src/context.rs
|
||||||
|
+++ b/media/audioipc/client/src/context.rs
|
||||||
|
@@ -265,17 +265,17 @@ impl ContextOps for ClientContext {
|
||||||
|
|
||||||
|
fn register_device_collection_changed(
|
||||||
|
&mut self,
|
||||||
|
_dev_type: DeviceType,
|
||||||
|
_collection_changed_callback: ffi::cubeb_device_collection_changed_callback,
|
||||||
|
_user_ptr: *mut c_void,
|
||||||
|
) -> Result<()> {
|
||||||
|
assert_not_in_callback();
|
||||||
|
- Ok(())
|
||||||
|
+ Err(Error::not_supported())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Drop for ClientContext {
|
||||||
|
fn drop(&mut self) {
|
||||||
|
debug!("ClientContext dropped...");
|
||||||
|
let _ = send_recv!(self.rpc(), ClientDisconnect => ClientDisconnected);
|
||||||
|
unsafe {
|
|
@ -31,3 +31,6 @@ fi
|
||||||
|
|
||||||
echo "Applying gecko.patch on top of $rev"
|
echo "Applying gecko.patch on top of $rev"
|
||||||
patch -p3 < gecko.patch
|
patch -p3 < gecko.patch
|
||||||
|
|
||||||
|
echo "Applying register-collection-not-supported.patch on top of $rev"
|
||||||
|
patch -p3 < register-collection-not-supported.patch
|
||||||
|
|
Загрузка…
Ссылка в новой задаче