Skip to content

Commit 948bb51

Browse files
committed
Demuxer: changed common_structs to common_types
1 parent 62c25bb commit 948bb51

File tree

12 files changed

+17
-19
lines changed

12 files changed

+17
-19
lines changed

src/rust/src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::bindings::*;
22
use crate::ctorust::{from_ctype_DebugMessageMask, FromCType};
3-
use crate::demuxer::common_structs::{
3+
use crate::demuxer::common_types::{
44
CapInfo, CcxDemuxReport, CcxRational, PMTEntry, PSIBuffer, ProgramInfo,
55
};
66
use crate::utils::null_pointer;

src/rust/src/ctorust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![allow(clippy::unnecessary_cast)] // we have to do this as windows has different types for some C types
22
use crate::bindings::*;
3-
use crate::demuxer::common_structs::{
3+
use crate::demuxer::common_types::{
44
CapInfo, CcxDemuxReport, CcxRational, PMTEntry, PSIBuffer, ProgramInfo,
55
};
66
use lib_ccxr::common::{

src/rust/src/demuxer/demux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::ffi::CString;
99
use std::fs::File;
1010
use std::io::{Seek, SeekFrom};
1111

12-
use crate::demuxer::common_structs::*;
12+
use crate::demuxer::common_types::*;
1313
use crate::file_functions::file::init_file_buffer;
1414
#[cfg(windows)]
1515
use crate::{bindings::_open_osfhandle, file_functions::file::open_windows};

src/rust/src/demuxer/demuxer_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::bindings::demuxer_data;
2-
use crate::demuxer::common_structs::{CcxRational, CCX_NOPTS};
2+
use crate::demuxer::common_types::{CcxRational, CCX_NOPTS};
33
use crate::MPEG_CLOCK_FREQ;
44
use lib_ccxr::common::{BufferdataType, Codec};
55
use std::ptr::null_mut;

src/rust/src/demuxer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
//! | `ccx_demuxer_print_cfg` (function) | [`CcxDemuxer::print_cfg()`] |
3636
//! | `isValidMP4Box` (function) | [`is_valid_mp4_box`] |
3737
38-
pub mod common_structs;
38+
pub mod common_types;
3939
pub mod demux;
4040
pub mod demuxer_data;
4141
pub mod stream_functions;

src/rust/src/demuxer/stream_functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::bindings::ccx_demuxer;
2-
use crate::demuxer::common_structs::{CcxDemuxer, CcxStreamMp4Box, STARTBYTESLENGTH};
2+
use crate::demuxer::common_types::{CcxDemuxer, CcxStreamMp4Box, STARTBYTESLENGTH};
33
use crate::file_functions::file::{buffered_read_opt, return_to_buffer};
44
use crate::libccxr_exports::demuxer::{alloc_new_demuxer, copy_demuxer_from_rust_to_c};
55
use cfg_if::cfg_if;

src/rust/src/file_functions/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#[cfg(windows)]
22
use crate::bindings::_get_osfhandle;
33
use crate::bindings::{lib_ccx_ctx, print_file_report};
4-
use crate::demuxer::common_structs::*;
4+
use crate::demuxer::common_types::*;
55
use crate::libccxr_exports::demuxer::copy_demuxer_from_c_to_rust;
66
use cfg_if::cfg_if;
77
use lib_ccxr::activity::ActivityExt;

src/rust/src/hlist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ pub unsafe fn is_decoder_processed_enough(ctx: &mut lib_ccx_ctx) -> i32 {
127127
#[cfg(test)]
128128
mod tests {
129129
use super::*;
130-
use crate::demuxer::common_structs::CapInfo;
130+
use crate::demuxer::common_types::CapInfo;
131131
use std::ptr;
132132

133133
pub fn create_capinfo() -> *mut CapInfo {

src/rust/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,7 @@ mod test {
384384
#[test]
385385
fn test_do_cb() {
386386
let mut dtvcc_ctx = crate::decoder::test::initialize_dtvcc_ctx();
387-
388387
let mut dtvcc = Dtvcc::new(&mut dtvcc_ctx);
389-
390388
let mut decoder_ctx = lib_cc_decode::default();
391389
let cc_block = [0x97, 0x1F, 0x3C];
392390

0 commit comments

Comments
 (0)