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/closedcaption | |
parent | a45581987189b45bc9d9d55750d0181806d6fe1b (diff) |
fix typos
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1170>
Diffstat (limited to 'video/closedcaption')
-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 |
6 files changed, 8 insertions, 8 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), |