diff --git a/tutorials/src/bin/basic-tutorial-5.rs b/tutorials/src/bin/basic-tutorial-5.rs index 42ef7d181..70630cdb3 100644 --- a/tutorials/src/bin/basic-tutorial-5.rs +++ b/tutorials/src/bin/basic-tutorial-5.rs @@ -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); } }