Commit 77d43933 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Fix build after Event/Message::get_structure() API change

parent fccb1eca
......@@ -238,7 +238,7 @@ mod tutorial5 {
.unwrap()
.connect_message(move |_, msg| match msg.view() {
gst::MessageView::Application(_) => {
if msg.get_structure().get_name() == "tags-changed" {
if msg.get_structure().map(|s| s.get_name()) == Some("tags-changed") {
analyze_streams(&pipeline, &textbuf);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment