mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
examples: Update for DiscovererStreamInfo::stream_id()
being nullable
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1266>
This commit is contained in:
parent
a13dcad033
commit
b6919d7c99
1 changed files with 5 additions and 1 deletions
|
@ -37,7 +37,11 @@ fn print_tags(info: &DiscovererInfo) {
|
|||
|
||||
fn print_stream_info(stream: &DiscovererStreamInfo) {
|
||||
println!("Stream: ");
|
||||
println!(" Stream id: {}", stream.stream_id());
|
||||
|
||||
if let Some(stream_id) = stream.stream_id() {
|
||||
println!(" Stream id: {}", stream_id);
|
||||
}
|
||||
|
||||
let caps_str = match stream.caps() {
|
||||
Some(caps) => caps.to_string(),
|
||||
None => String::from("--"),
|
||||
|
|
Loading…
Reference in a new issue