mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 04:45:47 +00:00
Return gst::BusSyncReply::Drop from the bus sync handler in the Rust sendrecv example
Otherwise all messages accumulate on the queue inside the bus and nothing is ever removing them from there. We handle messages elsewhere and only intercept them from the sync handler.
This commit is contained in:
parent
b3625eca9f
commit
8b44f32435
1 changed files with 1 additions and 1 deletions
|
@ -819,7 +819,7 @@ fn main() {
|
|||
let send_gst_msg_tx = Mutex::new(send_gst_msg_tx);
|
||||
bus.set_sync_handler(move |_, msg| {
|
||||
let _ = send_gst_msg_tx.lock().unwrap().try_send(msg.clone());
|
||||
gst::BusSyncReply::Pass
|
||||
gst::BusSyncReply::Drop
|
||||
});
|
||||
|
||||
// Create our application control logic
|
||||
|
|
Loading…
Reference in a new issue