mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-04-01 05:19:34 +00:00
Print all found sources in the debug log
This commit is contained in:
parent
5e5007091e
commit
d352a0c20d
1 changed files with 13 additions and 1 deletions
|
@ -724,7 +724,7 @@ fn connect_ndi_async(
|
|||
|
||||
let timer = time::Instant::now();
|
||||
let source = loop {
|
||||
find.wait_for_sources(100);
|
||||
let new_sources = find.wait_for_sources(100);
|
||||
let sources = find.get_current_sources();
|
||||
|
||||
gst_debug!(
|
||||
|
@ -734,6 +734,18 @@ fn connect_ndi_async(
|
|||
sources.len(),
|
||||
);
|
||||
|
||||
if new_sources {
|
||||
for source in &sources {
|
||||
gst_debug!(
|
||||
cat,
|
||||
obj: element,
|
||||
"Found source '{}' with IP {}",
|
||||
source.ndi_name(),
|
||||
source.ip_address(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
let receivers = HASHMAP_RECEIVERS.lock().unwrap();
|
||||
let info = match receivers.get(&id_receiver) {
|
||||
|
|
Loading…
Reference in a new issue