Skip to content

Commit

Permalink
src: lib controls: onvif: camera: Update encode discovery function name
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso authored and patrickelectric committed Dec 19, 2024
1 parent 9b699ad commit cc774b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/controls/onvif/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use serde::{Deserialize, Serialize};
use tokio::sync::RwLock;
use tracing::*;

use crate::{stream::gst::utils::get_encode_from_rtspsrc, video::types::Format};
use crate::{stream::gst::utils::get_encode_from_stream_uri, video::types::Format};

use super::manager::OnvifDevice;

Expand Down Expand Up @@ -243,7 +243,7 @@ impl OnvifCamera {
trace!("Using credentials {credentials:?}");
}

let Some(encode) = get_encode_from_rtspsrc(&stream_uri).await else {
let Some(encode) = get_encode_from_stream_uri(&stream_uri).await else {
warn!("Failed getting encoding from RTSP stream at {stream_uri}");
continue;
};
Expand Down

0 comments on commit cc774b3

Please sign in to comment.