mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-11 11:45:30 +00:00
ndisrc: Fix latency reporting in auto timestamp mode
This commit is contained in:
parent
9c10ba87df
commit
26f843a89f
1 changed files with 4 additions and 2 deletions
|
@ -507,7 +507,9 @@ impl BaseSrcImpl for NdiSrc {
|
||||||
if let Some(latency) = state.current_latency {
|
if let Some(latency) = state.current_latency {
|
||||||
let min = if matches!(
|
let min = if matches!(
|
||||||
settings.timestamp_mode,
|
settings.timestamp_mode,
|
||||||
TimestampMode::ReceiveTimeTimecode | TimestampMode::ReceiveTimeTimestamp
|
TimestampMode::Auto
|
||||||
|
| TimestampMode::ReceiveTimeTimecode
|
||||||
|
| TimestampMode::ReceiveTimeTimestamp
|
||||||
) {
|
) {
|
||||||
latency
|
latency
|
||||||
} else {
|
} else {
|
||||||
|
@ -592,7 +594,7 @@ impl BaseSrcImpl for NdiSrc {
|
||||||
gst::element_error!(
|
gst::element_error!(
|
||||||
element,
|
element,
|
||||||
gst::ResourceError::Settings,
|
gst::ResourceError::Settings,
|
||||||
["Invalid audio info received: {:?}", info]
|
["Invalid video info received: {:?}", info]
|
||||||
);
|
);
|
||||||
gst::FlowError::NotNegotiated
|
gst::FlowError::NotNegotiated
|
||||||
})?;
|
})?;
|
||||||
|
|
Loading…
Reference in a new issue