Replace a bounded channel by an unbounded one in the gstreamer plugin

This commit is contained in:
Alan Jeffrey 2020-07-30 13:31:12 -05:00
parent 78c7621177
commit 172d296c8b

View file

@ -962,7 +962,7 @@ impl ServoWebSrc {
if gfx.swap_chain.is_none() { if gfx.swap_chain.is_none() {
debug!("Getting the swap chain"); debug!("Getting the swap chain");
let (acks, ackr) = crossbeam_channel::bounded(1); let (acks, ackr) = crossbeam_channel::unbounded();
let _ = self.sender.send(ServoWebSrcMsg::GetSwapChain(acks)); let _ = self.sender.send(ServoWebSrcMsg::GetSwapChain(acks));
gfx.swap_chain = ackr.recv_timeout(Duration::from_millis(16)).ok(); gfx.swap_chain = ackr.recv_timeout(Duration::from_millis(16)).ok();
} }