From 77d439338b25569d396b6dead212de7b1631f531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 1 Dec 2017 17:31:47 +0200 Subject: [PATCH] Fix build after Event/Message::get_structure() API change --- tutorials/src/bin/basic-tutorial-5.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }