mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 23:11:01 +00:00
Merge pull request #45 from sdroege/update-to-gstreamer-0.15
Update to gstreamer 0.15 and byte-slice-cast 0.3
This commit is contained in:
commit
edcb10820d
4 changed files with 25 additions and 25 deletions
12
Cargo.toml
12
Cargo.toml
|
@ -8,14 +8,14 @@ description = "NewTek NDI Plugin"
|
|||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
glib = { version = "0.8.0", features = ["subclassing"] }
|
||||
glib = "0.9"
|
||||
gobject-sys = "0.9"
|
||||
gstreamer = { version = "0.14.4", features = ["subclassing", "v1_12"] }
|
||||
gstreamer-base = { version = "0.14.0", features = ["subclassing"] }
|
||||
gstreamer-audio = "0.14.0"
|
||||
gstreamer-video = { version = "0.14.3", features = ["v1_12"] }
|
||||
gstreamer = { version = "0.15", features = ["v1_12"] }
|
||||
gstreamer-base = "0.15"
|
||||
gstreamer-audio = "0.15"
|
||||
gstreamer-video = { version = "0.15", features = ["v1_12"] }
|
||||
lazy_static = "1.1.0"
|
||||
byte-slice-cast = "0.2.0"
|
||||
byte-slice-cast = "0.3.0"
|
||||
|
||||
[build-dependencies]
|
||||
gst-plugin-version-helper = "0.1"
|
||||
|
|
|
@ -217,7 +217,7 @@ impl ObjectImpl for NdiAudioSrc {
|
|||
match *prop {
|
||||
subclass::Property("ndi-name", ..) => {
|
||||
let mut settings = self.settings.lock().unwrap();
|
||||
let ndi_name = value.get();
|
||||
let ndi_name = value.get().unwrap();
|
||||
gst_debug!(
|
||||
self.cat,
|
||||
obj: basesrc,
|
||||
|
@ -229,7 +229,7 @@ impl ObjectImpl for NdiAudioSrc {
|
|||
}
|
||||
subclass::Property("ip-address", ..) => {
|
||||
let mut settings = self.settings.lock().unwrap();
|
||||
let ip_address = value.get();
|
||||
let ip_address = value.get().unwrap();
|
||||
gst_debug!(
|
||||
self.cat,
|
||||
obj: basesrc,
|
||||
|
@ -241,7 +241,7 @@ impl ObjectImpl for NdiAudioSrc {
|
|||
}
|
||||
subclass::Property("receiver-ndi-name", ..) => {
|
||||
let mut settings = self.settings.lock().unwrap();
|
||||
let receiver_ndi_name = value.get();
|
||||
let receiver_ndi_name = value.get().unwrap();
|
||||
gst_debug!(
|
||||
self.cat,
|
||||
obj: basesrc,
|
||||
|
@ -254,7 +254,7 @@ impl ObjectImpl for NdiAudioSrc {
|
|||
}
|
||||
subclass::Property("connect-timeout", ..) => {
|
||||
let mut settings = self.settings.lock().unwrap();
|
||||
let connect_timeout = value.get().unwrap();
|
||||
let connect_timeout = value.get_some().unwrap();
|
||||
gst_debug!(
|
||||
self.cat,
|
||||
obj: basesrc,
|
||||
|
@ -266,7 +266,7 @@ impl ObjectImpl for NdiAudioSrc {
|
|||
}
|
||||
subclass::Property("timeout", ..) => {
|
||||
let mut settings = self.settings.lock().unwrap();
|
||||
let timeout = value.get().unwrap();
|
||||
let timeout = value.get_some().unwrap();
|
||||
gst_debug!(
|
||||
self.cat,
|
||||
obj: basesrc,
|
||||
|
@ -278,7 +278,7 @@ impl ObjectImpl for NdiAudioSrc {
|
|||
}
|
||||
subclass::Property("bandwidth", ..) => {
|
||||
let mut settings = self.settings.lock().unwrap();
|
||||
let bandwidth = value.get().unwrap();
|
||||
let bandwidth = value.get_some().unwrap();
|
||||
gst_debug!(
|
||||
self.cat,
|
||||
obj: basesrc,
|
||||
|
@ -290,7 +290,7 @@ impl ObjectImpl for NdiAudioSrc {
|
|||
}
|
||||
subclass::Property("timestamp-mode", ..) => {
|
||||
let mut settings = self.settings.lock().unwrap();
|
||||
let timestamp_mode = value.get().unwrap();
|
||||
let timestamp_mode = value.get_some().unwrap();
|
||||
gst_debug!(
|
||||
self.cat,
|
||||
obj: basesrc,
|
||||
|
@ -518,7 +518,7 @@ impl BaseSrcImpl for NdiAudioSrc {
|
|||
let mut state = self.state.lock().unwrap();
|
||||
state.receiver = Some(recv);
|
||||
if state.info.as_ref() != Some(&info) {
|
||||
let caps = info.to_caps().ok_or_else(|| {
|
||||
let caps = info.to_caps().map_err(|_| {
|
||||
gst_element_error!(
|
||||
element,
|
||||
gst::ResourceError::Settings,
|
||||
|
|
|
@ -252,7 +252,7 @@ impl ObjectImpl for NdiVideoSrc {
|
|||
match *prop {
|
||||
subclass::Property("ndi-name", ..) => {
|
||||
let mut settings = self.settings.lock().unwrap();
|
||||
let ndi_name = value.get();
|
||||
let ndi_name = value.get().unwrap();
|
||||
gst_debug!(
|
||||
self.cat,
|
||||
obj: basesrc,
|
||||
|
@ -264,7 +264,7 @@ impl ObjectImpl for NdiVideoSrc {
|
|||
}
|
||||
subclass::Property("ip-address", ..) => {
|
||||
let mut settings = self.settings.lock().unwrap();
|
||||
let ip_address = value.get();
|
||||
let ip_address = value.get().unwrap();
|
||||
gst_debug!(
|
||||
self.cat,
|
||||
obj: basesrc,
|
||||
|
@ -276,7 +276,7 @@ impl ObjectImpl for NdiVideoSrc {
|
|||
}
|
||||
subclass::Property("receiver-ndi-name", ..) => {
|
||||
let mut settings = self.settings.lock().unwrap();
|
||||
let receiver_ndi_name = value.get();
|
||||
let receiver_ndi_name = value.get().unwrap();
|
||||
gst_debug!(
|
||||
self.cat,
|
||||
obj: basesrc,
|
||||
|
@ -289,7 +289,7 @@ impl ObjectImpl for NdiVideoSrc {
|
|||
}
|
||||
subclass::Property("connect-timeout", ..) => {
|
||||
let mut settings = self.settings.lock().unwrap();
|
||||
let connect_timeout = value.get().unwrap();
|
||||
let connect_timeout = value.get_some().unwrap();
|
||||
gst_debug!(
|
||||
self.cat,
|
||||
obj: basesrc,
|
||||
|
@ -301,7 +301,7 @@ impl ObjectImpl for NdiVideoSrc {
|
|||
}
|
||||
subclass::Property("timeout", ..) => {
|
||||
let mut settings = self.settings.lock().unwrap();
|
||||
let timeout = value.get().unwrap();
|
||||
let timeout = value.get_some().unwrap();
|
||||
gst_debug!(
|
||||
self.cat,
|
||||
obj: basesrc,
|
||||
|
@ -313,7 +313,7 @@ impl ObjectImpl for NdiVideoSrc {
|
|||
}
|
||||
subclass::Property("bandwidth", ..) => {
|
||||
let mut settings = self.settings.lock().unwrap();
|
||||
let bandwidth = value.get().unwrap();
|
||||
let bandwidth = value.get_some().unwrap();
|
||||
gst_debug!(
|
||||
self.cat,
|
||||
obj: basesrc,
|
||||
|
@ -325,7 +325,7 @@ impl ObjectImpl for NdiVideoSrc {
|
|||
}
|
||||
subclass::Property("timestamp-mode", ..) => {
|
||||
let mut settings = self.settings.lock().unwrap();
|
||||
let timestamp_mode = value.get().unwrap();
|
||||
let timestamp_mode = value.get_some().unwrap();
|
||||
gst_debug!(
|
||||
self.cat,
|
||||
obj: basesrc,
|
||||
|
@ -557,7 +557,7 @@ impl BaseSrcImpl for NdiVideoSrc {
|
|||
let mut state = self.state.lock().unwrap();
|
||||
state.receiver = Some(recv);
|
||||
if state.info.as_ref() != Some(&info) {
|
||||
let caps = info.to_caps().ok_or_else(|| {
|
||||
let caps = info.to_caps().map_err(|_| {
|
||||
gst_element_error!(
|
||||
element,
|
||||
gst::ResourceError::Settings,
|
||||
|
|
|
@ -1292,7 +1292,7 @@ impl Receiver<VideoReceiver> {
|
|||
builder = builder.field_order(gst_video::VideoFieldOrder::TopFieldFirst);
|
||||
}
|
||||
|
||||
builder.build().ok_or_else(|| {
|
||||
builder.build().map_err(|_| {
|
||||
gst_element_error!(
|
||||
element,
|
||||
gst::StreamError::Format,
|
||||
|
@ -1341,7 +1341,7 @@ impl Receiver<VideoReceiver> {
|
|||
builder = builder.field_order(gst_video::VideoFieldOrder::TopFieldFirst);
|
||||
}
|
||||
|
||||
builder.build().ok_or_else(|| {
|
||||
builder.build().map_err(|_| {
|
||||
gst_element_error!(
|
||||
element,
|
||||
gst::StreamError::Format,
|
||||
|
@ -1666,7 +1666,7 @@ impl Receiver<AudioReceiver> {
|
|||
audio_frame.no_channels() as u32,
|
||||
);
|
||||
|
||||
builder.build().ok_or_else(|| {
|
||||
builder.build().map_err(|_| {
|
||||
gst_element_error!(
|
||||
element,
|
||||
gst::StreamError::Format,
|
||||
|
|
Loading…
Reference in a new issue