Skip to content

Commit

Permalink
fix: for nocodec
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia committed Aug 3, 2023
1 parent 5879ace commit e5c654f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@ fn main() {
if let Some(codec) = args.no_codec {
match codec {
Codec::Dvbsub => {
opt.demux_cfg.nocodec = CcxCodeType::Teletext;
opt.demux_cfg.codec = CcxCodeType::Teletext;
}
Codec::Teletext => {
opt.demux_cfg.nocodec = CcxCodeType::Dvb;
opt.demux_cfg.codec = CcxCodeType::Dvb;
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/rust/src/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ impl Default for CcxDemuxerCfg {
m2ts: false,
auto_stream: CcxStreamMode::default(),
codec: CcxCodeType::default(),
nocodec: CcxCodeType::default(),
ts_autoprogram: 0,
ts_allprogram: 0,
ts_cappids: [0; 128],
Expand All @@ -197,7 +196,6 @@ pub struct CcxDemuxerCfg {
pub m2ts: bool,
pub auto_stream: CcxStreamMode,
pub codec: CcxCodeType,
pub nocodec: CcxCodeType,
pub ts_autoprogram: u32,
pub ts_allprogram: u32,
pub ts_cappids: [u32; 128],
Expand Down

0 comments on commit e5c654f

Please sign in to comment.