1
0
Fork 0
forked from wry/wry

pipewire: force re-negotiation when buffers change

This commit is contained in:
Julian Orth 2024-02-28 00:07:15 +01:00
parent 9fba5f9b45
commit e1488eca55
2 changed files with 18 additions and 7 deletions

View file

@ -155,7 +155,7 @@ impl PwClientNodeOwner for StartingScreencast {
impl PwClientNodeOwner for StartedScreencast {
fn port_format_changed(&self, port: &Rc<PwClientNodePort>) {
self.node.send_port_update(port);
self.node.send_port_update(port, false);
}
fn use_buffers(&self, port: &Rc<PwClientNodePort>) {
@ -300,7 +300,7 @@ impl UsrJayScreencastOwner for StartedScreencast {
data_type: SPA_DATA_DmaBuf,
};
self.port.buffer_config.set(Some(bc));
self.node.send_port_update(&self.port);
self.node.send_port_update(&self.port, true);
self.node.send_active(true);
*self.buffers.borrow_mut() = buffers;
}