Skip to content

Commit

Permalink
clear rtmp logs
Browse files Browse the repository at this point in the history
  • Loading branch information
harlanc authored and hailiang8 committed Dec 30, 2023
1 parent 999c87a commit 74ad8a0
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions protocol/rtmp/src/chunk/unpacketizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@ enum MessageHeaderReadState {
ReadMsgTypeID = 3,
ReadMsgStreamID = 4,
}
#[allow(dead_code)]
#[derive(Debug, Clone)]
struct UnPackInfo {
pub current_chunk_info: ChunkInfo,
chunk_message_headers: HashMap<u32, ChunkMessageHeader>,
chunk_read_state: ChunkReadState,
msg_header_read_state: MessageHeaderReadState,
max_chunk_size: usize,
}

pub struct ChunkUnpacketizer {
pub reader: BytesReader,
Expand Down Expand Up @@ -536,21 +527,6 @@ impl ChunkUnpacketizer {
self.chunk_read_state = ChunkReadState::ReadExtendedTimestamp;
self.print_current_message_header(ChunkReadState::ReadMessageHeader);

if self.current_message_header().extended_timestamp_type != ExtendTimestampType::NONE {
let cur_unpack_info = UnPackInfo {
current_chunk_info: self.current_chunk_info.clone(),
chunk_message_headers: self.chunk_message_headers.clone(),
chunk_read_state: self.chunk_read_state,
msg_header_read_state: self.msg_header_read_state,
max_chunk_size: self.max_chunk_size,
};

log::info!(
"begin dump data. and current chunk info: {:?}",
cur_unpack_info
);
}

Ok(UnpackResult::Success)
}

Expand Down

0 comments on commit 74ad8a0

Please sign in to comment.