Skip to content

Commit

Permalink
Replaced oddity_video with video_rs
Browse files Browse the repository at this point in the history
  • Loading branch information
gerwin3 committed Aug 19, 2022
1 parent 5752907 commit d95b807
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions oddity-rtsp-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ futures = "0.3"
tokio = { version = "1", features = ["full"] }
tokio-stream = { version = "0.1" }
tokio-util = { version = "0.7.1", default-features = false, features = ["codec"] }
video-rs = "0.1"
oddity-rtsp-protocol = { path = "../oddity-rtsp-protocol", features = ["tokio-codec"] }
oddity-sdp-protocol = { path = "../oddity-sdp-protocol" }
oddity-video = { path = "../../oddity-video" } # Fix this weird dep path
oddity-sdp-protocol = { path = "../oddity-sdp-protocol" }
2 changes: 1 addition & 1 deletion oddity-rtsp-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use app::config::AppConfig;

use tokio::signal::ctrl_c;

use oddity_video as video;
use video_rs as video;

macro_rules! on_error_exit {
($expr:expr) => {
Expand Down
6 changes: 3 additions & 3 deletions oddity-rtsp-server/src/media/mod.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
pub mod sdp;
pub mod video;

use oddity_video::StreamInfo;
use video_rs::StreamInfo;

pub use oddity_video::Packet;
pub use video_rs::Packet;

use std::path::PathBuf;
use std::fmt;

use oddity_video::{Reader, Locator, Url, Error};
use video_rs::{Reader, Locator, Url, Error};

type Result<T> = std::result::Result<T, Error>;

Expand Down
6 changes: 3 additions & 3 deletions oddity-rtsp-server/src/media/video/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::thread;
use tokio::task;
use tokio::sync::mpsc;

use oddity_video as video;
use video_rs as video;

use crate::media::{MediaDescriptor, MediaInfo};

Expand Down Expand Up @@ -176,12 +176,12 @@ impl Times {

}

// Holds functions that deal with the video backend stuff in `oddity_video`.
// Holds functions that deal with the video backend stuff in `video_rs`.
pub mod backend {

use tokio::task;

use oddity_video::{
use video_rs::{
Reader,
Options,
Locator,
Expand Down
4 changes: 2 additions & 2 deletions oddity-rtsp-server/src/media/video/rtp_muxer.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! Async wrapper functions for [`oddity_video::RtpMuxer`].
//! Async wrapper functions for [`video_rs::RtpMuxer`].
use tokio::task;

use oddity_video::{self as video, RtpMuxer};
use video_rs::{self as video, RtpMuxer};

type Result<T> = std::result::Result<T, video::Error>;

Expand Down
2 changes: 1 addition & 1 deletion oddity-rtsp-server/src/session/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use tokio::sync::broadcast;
use rand::Rng;

use oddity_rtsp_protocol as rtsp;
use oddity_video as video;
use video_rs as video;

use crate::runtime::Runtime;
use crate::runtime::task_manager::{Task, TaskContext};
Expand Down
2 changes: 1 addition & 1 deletion oddity-rtsp-server/src/session/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::fmt;
use std::error;
use std::net::SocketAddr;

use oddity_video as video;
use video_rs as video;
use oddity_rtsp_protocol as rtsp;

use crate::net::connection::ResponseSenderTx;
Expand Down
2 changes: 1 addition & 1 deletion oddity-rtsp-server/src/source/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use tokio::time::timeout;
use tokio::sync::mpsc;
use tokio::sync::broadcast;

use oddity_video as video;
use video_rs as video;

use crate::runtime::Runtime;
use crate::runtime::task_manager::{Task, TaskContext};
Expand Down
2 changes: 1 addition & 1 deletion oddity-rtsp-server/src/source/source_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use tokio::select;
use tokio::sync::Mutex;
use tokio::sync::mpsc;

use oddity_video::Error as MediaError;
use video_rs::Error as MediaError;

use crate::runtime::Runtime;
use crate::runtime::task_manager::{Task, TaskContext};
Expand Down

0 comments on commit d95b807

Please sign in to comment.