mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-04-27 23:44:57 +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 timer = time::Instant::now();
|
||||||
let source = loop {
|
let source = loop {
|
||||||
find.wait_for_sources(100);
|
let new_sources = find.wait_for_sources(100);
|
||||||
let sources = find.get_current_sources();
|
let sources = find.get_current_sources();
|
||||||
|
|
||||||
gst_debug!(
|
gst_debug!(
|
||||||
|
@ -734,6 +734,18 @@ fn connect_ndi_async(
|
||||||
sources.len(),
|
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 receivers = HASHMAP_RECEIVERS.lock().unwrap();
|
||||||
let info = match receivers.get(&id_receiver) {
|
let info = match receivers.get(&id_receiver) {
|
||||||
|
|
Loading…
Reference in a new issue