mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 10:30:40 +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 {
|
||||
let min = if matches!(
|
||||
settings.timestamp_mode,
|
||||
TimestampMode::ReceiveTimeTimecode | TimestampMode::ReceiveTimeTimestamp
|
||||
TimestampMode::Auto
|
||||
| TimestampMode::ReceiveTimeTimecode
|
||||
| TimestampMode::ReceiveTimeTimestamp
|
||||
) {
|
||||
latency
|
||||
} else {
|
||||
|
@ -592,7 +594,7 @@ impl BaseSrcImpl for NdiSrc {
|
|||
gst::element_error!(
|
||||
element,
|
||||
gst::ResourceError::Settings,
|
||||
["Invalid audio info received: {:?}", info]
|
||||
["Invalid video info received: {:?}", info]
|
||||
);
|
||||
gst::FlowError::NotNegotiated
|
||||
})?;
|
||||
|
|
Loading…
Reference in a new issue