diff options
author | Guillaume Desmottes <guillaume.desmottes@onestream.live> | 2023-04-10 14:34:46 +0300 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@onestream.live> | 2023-04-10 14:35:32 +0300 |
commit | 403004a85e7bdd7567d3381d592ef00e5914b6ed (patch) | |
tree | 93caa4153b50799f4e784beaad9b075330ae4648 /video | |
parent | a45581987189b45bc9d9d55750d0181806d6fe1b (diff) |
fix typos
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1170>
Diffstat (limited to 'video')
-rw-r--r-- | video/closedcaption/src/cea608tocea708/imp.rs | 2 | ||||
-rw-r--r-- | video/closedcaption/src/ffi.rs | 2 | ||||
-rw-r--r-- | video/closedcaption/src/mcc_parse/imp.rs | 4 | ||||
-rw-r--r-- | video/closedcaption/src/scc_enc/imp.rs | 2 | ||||
-rw-r--r-- | video/closedcaption/src/scc_parse/imp.rs | 4 | ||||
-rw-r--r-- | video/closedcaption/src/tttocea608/imp.rs | 2 | ||||
-rw-r--r-- | video/hsv/src/hsvfilter/imp.rs | 2 | ||||
-rw-r--r-- | video/hsv/src/hsvutils.rs | 2 | ||||
-rw-r--r-- | video/videofx/src/videocompare/mod.rs | 8 |
9 files changed, 14 insertions, 14 deletions
diff --git a/video/closedcaption/src/cea608tocea708/imp.rs b/video/closedcaption/src/cea608tocea708/imp.rs index ddf85ec7f..2a53c7cbb 100644 --- a/video/closedcaption/src/cea608tocea708/imp.rs +++ b/video/closedcaption/src/cea608tocea708/imp.rs @@ -385,7 +385,7 @@ impl State { "change of rollup row count from {old_count} to {new_count}", ); if old_count > new_count { - // push the captions ot the top of the window before we shrink the size of the + // push the captions on the top of the window before we shrink the size of the // window for _ in new_count..old_count { self.cea708.service_state[idx] diff --git a/video/closedcaption/src/ffi.rs b/video/closedcaption/src/ffi.rs index b4145fa6b..87110fa9f 100644 --- a/video/closedcaption/src/ffi.rs +++ b/video/closedcaption/src/ffi.rs @@ -586,7 +586,7 @@ extern "C" { pub fn utf8_char_count(data: *const ::std::os::raw::c_char, size: usize) -> utf8_size_t; } extern "C" { - pub fn utf8_trimmed_length(data: *const utf8_char_t, charcters: utf8_size_t) -> utf8_size_t; + pub fn utf8_trimmed_length(data: *const utf8_char_t, characters: utf8_size_t) -> utf8_size_t; } extern "C" { pub fn utf8_line_length(data: *const utf8_char_t) -> usize; diff --git a/video/closedcaption/src/mcc_parse/imp.rs b/video/closedcaption/src/mcc_parse/imp.rs index 69c04e672..f994cc45e 100644 --- a/video/closedcaption/src/mcc_parse/imp.rs +++ b/video/closedcaption/src/mcc_parse/imp.rs @@ -1032,7 +1032,7 @@ impl MccParse { } } QueryViewMut::Position(q) => { - // For Time answer ourselfs, otherwise forward + // For Time answer ourselves, otherwise forward if q.format() == gst::Format::Time { let state = self.state.lock().unwrap(); q.set(state.last_position); @@ -1042,7 +1042,7 @@ impl MccParse { } } QueryViewMut::Duration(q) => { - // For Time answer ourselfs, otherwise forward + // For Time answer ourselves, otherwise forward let state = self.state.lock().unwrap(); if q.format() == gst::Format::Time { if let Some(pull) = state.pull.as_ref() { diff --git a/video/closedcaption/src/scc_enc/imp.rs b/video/closedcaption/src/scc_enc/imp.rs index c2d24af50..75107049e 100644 --- a/video/closedcaption/src/scc_enc/imp.rs +++ b/video/closedcaption/src/scc_enc/imp.rs @@ -122,7 +122,7 @@ impl State { ["Stream with timecodes on each buffer required"] ); - // If we neeed to skip a buffer, increment the frame if it exists + // If we need to skip a buffer, increment the frame if it exists // to avoid getting out of sync if let Some(ref mut timecode) = self.expected_timecode { timecode.increment_frame(); diff --git a/video/closedcaption/src/scc_parse/imp.rs b/video/closedcaption/src/scc_parse/imp.rs index 5bd19b5e3..78fc6cf63 100644 --- a/video/closedcaption/src/scc_parse/imp.rs +++ b/video/closedcaption/src/scc_parse/imp.rs @@ -911,7 +911,7 @@ impl SccParse { } } QueryViewMut::Position(q) => { - // For Time answer ourselfs, otherwise forward + // For Time answer ourselves, otherwise forward if q.format() == gst::Format::Time { let state = self.state.lock().unwrap(); q.set(state.last_position); @@ -921,7 +921,7 @@ impl SccParse { } } QueryViewMut::Duration(q) => { - // For Time answer ourselfs, otherwise forward + // For Time answer ourselves, otherwise forward let state = self.state.lock().unwrap(); if q.format() == gst::Format::Time { if let Some(pull) = state.pull.as_ref() { diff --git a/video/closedcaption/src/tttocea608/imp.rs b/video/closedcaption/src/tttocea608/imp.rs index 2d8b931c7..907ef29ff 100644 --- a/video/closedcaption/src/tttocea608/imp.rs +++ b/video/closedcaption/src/tttocea608/imp.rs @@ -663,7 +663,7 @@ impl TtToCea608 { if is_specialna(cc_data) { // adapted from libcaption's generation code: - // specialna are treated as control charcters. Duplicated control charcters are discarded + // specialna are treated as control characters. Duplicated control characters are discarded // So we write a resume after a specialna as a noop control command to break repetition detection match state.mode { Cea608Mode::RollUp2 => state.roll_up_2(self, mut_list), diff --git a/video/hsv/src/hsvfilter/imp.rs b/video/hsv/src/hsvfilter/imp.rs index 4ea137199..874c32958 100644 --- a/video/hsv/src/hsvfilter/imp.rs +++ b/video/hsv/src/hsvfilter/imp.rs @@ -262,7 +262,7 @@ impl ElementImpl for HsvFilter { gst::subclass::ElementMetadata::new( "HSV filter", "Filter/Effect/Converter/Video", - "Works within the HSV colorspace to apply tranformations to incoming frames", + "Works within the HSV colorspace to apply transformations to incoming frames", "Julien Bardagi <julien.bardagi@gmail.com>", ) }); diff --git a/video/hsv/src/hsvutils.rs b/video/hsv/src/hsvutils.rs index c1d7ad4c1..fea53bc2e 100644 --- a/video/hsv/src/hsvutils.rs +++ b/video/hsv/src/hsvutils.rs @@ -11,7 +11,7 @@ // Reference used for implementation: https://en.wikipedia.org/wiki/HSL_and_HSV // Since the standard 'clamp' feature is still considered unstable, we provide -// a subsititute implementaion here so we can still build with the stable toolchain. +// a subsititute implementation here so we can still build with the stable toolchain. // Source: https://github.com/rust-lang/rust/issues/44095#issuecomment-624879262 pub trait Clamp: Sized { fn clamp<L, U>(self, lower: L, upper: U) -> Self diff --git a/video/videofx/src/videocompare/mod.rs b/video/videofx/src/videocompare/mod.rs index 9239ee3f9..67bccd4f1 100644 --- a/video/videofx/src/videocompare/mod.rs +++ b/video/videofx/src/videocompare/mod.rs @@ -198,14 +198,14 @@ mod test { let running_time = gst::ClockTime::from_seconds(2); - let mut messsage = VideoCompareMessage::default(); - messsage.pad_distances.push(PadDistance { + let mut message = VideoCompareMessage::default(); + message.pad_distances.push(PadDistance { pad: gst::Pad::new(Some("sink_0"), gst::PadDirection::Sink), distance: 42_f64, }); - messsage.running_time = Some(running_time); + message.running_time = Some(running_time); - let structure: gst::Structure = messsage.into(); + let structure: gst::Structure = message.into(); let pad_distances = structure.get::<gst::Array>("pad-distances").unwrap(); let first = pad_distances |