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 /tutorial | |
parent | 27bc5c89cad7dfec9cc12c6c87beca76a4a0b139 (diff) |
fix-getters-calls 0.3.0 pass
Diffstat (limited to 'tutorial')
-rw-r--r-- | tutorial/build.rs | 2 | ||||
-rw-r--r-- | tutorial/src/identity/imp.rs | 4 | ||||
-rw-r--r-- | tutorial/src/progressbin/imp.rs | 8 | ||||
-rw-r--r-- | tutorial/src/sinesrc/imp.rs | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/tutorial/build.rs b/tutorial/build.rs index 17be1215e..cda12e57e 100644 --- a/tutorial/build.rs +++ b/tutorial/build.rs @@ -1,3 +1,3 @@ fn main() { - gst_plugin_version_helper::get_info() + gst_plugin_version_helper::info() } diff --git a/tutorial/src/identity/imp.rs b/tutorial/src/identity/imp.rs index 2d58f9a51..6b56e1b53 100644 --- a/tutorial/src/identity/imp.rs +++ b/tutorial/src/identity/imp.rs @@ -132,7 +132,7 @@ impl ObjectSubclass for Identity { // - Extract our Identity struct from the object instance and pass it to us // // Details about what each function is good for is next to each function definition - 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| { Identity::catch_panic_pad_function( @@ -157,7 +157,7 @@ impl ObjectSubclass for Identity { }) .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| { Identity::catch_panic_pad_function( diff --git a/tutorial/src/progressbin/imp.rs b/tutorial/src/progressbin/imp.rs index cd06c8443..713e88ed7 100644 --- a/tutorial/src/progressbin/imp.rs +++ b/tutorial/src/progressbin/imp.rs @@ -57,9 +57,9 @@ impl ObjectSubclass for ProgressBin { // do so after the progressreport element was added to the bin. // // We do that and adding the pads inside glib::Object::constructed() later. - let templ = klass.get_pad_template("sink").unwrap(); + let templ = klass.pad_template("sink").unwrap(); let sinkpad = gst::GhostPad::from_template(&templ, Some("sink")); - let templ = klass.get_pad_template("src").unwrap(); + let templ = klass.pad_template("src").unwrap(); let srcpad = gst::GhostPad::from_template(&templ, Some("src")); // Create the progressreport element. @@ -148,10 +148,10 @@ impl ObjectImpl for ProgressBin { // Then set the ghost pad targets to the corresponding pads of the progressreport element. self.sinkpad - .set_target(Some(&self.progress.get_static_pad("sink").unwrap())) + .set_target(Some(&self.progress.static_pad("sink").unwrap())) .unwrap(); self.srcpad - .set_target(Some(&self.progress.get_static_pad("src").unwrap())) + .set_target(Some(&self.progress.static_pad("src").unwrap())) .unwrap(); // And finally add the two ghostpads to the bin. diff --git a/tutorial/src/sinesrc/imp.rs b/tutorial/src/sinesrc/imp.rs index 2d201fe6a..c7fc45415 100644 --- a/tutorial/src/sinesrc/imp.rs +++ b/tutorial/src/sinesrc/imp.rs @@ -522,7 +522,7 @@ impl BaseSrcImpl for SineSrc { caps.truncate(); { let caps = caps.make_mut(); - let s = caps.get_mut_structure(0).unwrap(); + let s = caps.structure_mut(0).unwrap(); s.fixate_field_nearest_int("rate", 48_000); s.fixate_field_nearest_int("channels", 1); } |