diff options
author | François Laignel <fengalin@free.fr> | 2021-04-20 15:58:11 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2021-04-20 19:19:58 +0300 |
commit | 67c5871957a583c5817156891cb6586a54e6d5f4 (patch) | |
tree | 3d9aff3447876b8d17df180b8a0e9b9594f90b5d /text/json | |
parent | 27bc5c89cad7dfec9cc12c6c87beca76a4a0b139 (diff) |
fix-getters-calls 0.3.0 pass
Diffstat (limited to 'text/json')
-rw-r--r-- | text/json/build.rs | 2 | ||||
-rw-r--r-- | text/json/src/jsongstenc/imp.rs | 6 | ||||
-rw-r--r-- | text/json/src/jsongstparse/imp.rs | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/text/json/build.rs b/text/json/build.rs index 17be1215e..cda12e57e 100644 --- a/text/json/build.rs +++ b/text/json/build.rs @@ -1,3 +1,3 @@ fn main() { - gst_plugin_version_helper::get_info() + gst_plugin_version_helper::info() } diff --git a/text/json/src/jsongstenc/imp.rs b/text/json/src/jsongstenc/imp.rs index 58c8a6c88..2b825c545 100644 --- a/text/json/src/jsongstenc/imp.rs +++ b/text/json/src/jsongstenc/imp.rs @@ -183,7 +183,7 @@ impl JsonGstEnc { { let mut state = self.state.lock().unwrap(); let caps = e.caps(); - let s = caps.get_structure(0).unwrap(); + let s = caps.structure(0).unwrap(); state.format = match s.get::<String>("format") { Err(_) => None, Ok(format) => format, @@ -207,7 +207,7 @@ impl ObjectSubclass for JsonGstEnc { type ParentType = gst::Element; fn with_class(klass: &Self::Class) -> Self { - let templ = klass.get_pad_template("sink").unwrap(); + let templ = klass.pad_template("sink").unwrap(); let sinkpad = gst::Pad::builder_with_template(&templ, Some("sink")) .chain_function(|pad, parent, buffer| { JsonGstEnc::catch_panic_pad_function( @@ -225,7 +225,7 @@ impl ObjectSubclass for JsonGstEnc { }) .build(); - let templ = klass.get_pad_template("src").unwrap(); + let templ = klass.pad_template("src").unwrap(); let srcpad = gst::Pad::builder_with_template(&templ, Some("src")).build(); Self { diff --git a/text/json/src/jsongstparse/imp.rs b/text/json/src/jsongstparse/imp.rs index 73784d634..02f936831 100644 --- a/text/json/src/jsongstparse/imp.rs +++ b/text/json/src/jsongstparse/imp.rs @@ -120,7 +120,7 @@ impl State { self.replay_last_line = false; &self.last_raw_line } else { - match self.reader.get_line_with_drain(drain) { + match self.reader.line_with_drain(drain) { None => { return Ok(None); } @@ -242,7 +242,7 @@ impl JsonGstParse { loop { let seeking = state.seeking; - let line = state.get_line(drain); + let line = state.line(drain); match line { Ok(Some(Line::Buffer { pts, @@ -489,7 +489,7 @@ impl JsonGstParse { reader.push(buf); } - while let Some(line) = reader.get_line_with_drain(true) { + while let Some(line) = reader.line_with_drain(true) { if let Ok(Line::Buffer { pts, duration, @@ -869,7 +869,7 @@ impl ObjectSubclass for JsonGstParse { type ParentType = gst::Element; fn with_class(klass: &Self::Class) -> Self { - let templ = klass.get_pad_template("sink").unwrap(); + let templ = klass.pad_template("sink").unwrap(); let sinkpad = gst::Pad::builder_with_template(&templ, Some("sink")) .activate_function(|pad, parent| { JsonGstParse::catch_panic_pad_function( @@ -906,7 +906,7 @@ impl ObjectSubclass for JsonGstParse { }) .build(); - let templ = klass.get_pad_template("src").unwrap(); + let templ = klass.pad_template("src").unwrap(); let srcpad = gst::Pad::builder_with_template(&templ, Some("src")) .event_function(|pad, parent, event| { JsonGstParse::catch_panic_pad_function( |