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

This commit is contained in:
Sebastian Dröge 2017-12-01 17:31:47 +02:00
parent fccb1eca5e
commit 77d439338b

View file

@ -238,7 +238,7 @@ mod tutorial5 {
.unwrap() .unwrap()
.connect_message(move |_, msg| match msg.view() { .connect_message(move |_, msg| match msg.view() {
gst::MessageView::Application(_) => { 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); analyze_streams(&pipeline, &textbuf);
} }
} }