Skip to content

Commit

Permalink
delete commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
damian-tworek committed Nov 24, 2023
1 parent 17d9c39 commit 3558ae6
Showing 1 changed file with 0 additions and 71 deletions.
71 changes: 0 additions & 71 deletions client/src/streams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,77 +78,6 @@ fn handle_packet(streams: &mut HashMap<StreamKey, Stream>, packet: &Packet) {
_ => Vec::new(),
};

// RtcpPacket::SenderReport(sender_report) => {
// if let Some(stream) = streams.get_mut(&sender_report.ssrc) {
// stream.add_rtcp_packet(packet)
// }
// }
// RtcpPacket::ReceiverReport(receiver_report) => {
// for report in &receiver_report.reports {
// if let Some(stream) = streams.get_mut(&report.ssrc) {
// stream.add_rtcp_packet(packet)
// }
// }
// }
// RtcpPacket::SourceDescription(source_description) => {
// for chunk in &source_description.chunks {
// if let Some(stream) = streams.get_mut(&chunk.source) {
// stream.add_rtcp_packet(packet)
// }
// }
// }
// RtcpPacket::Goodbye(goodbye) => {
// for source in &goodbye.sources {
// if let Some(stream) = streams.get_mut(source) {
// stream.add_rtcp_packet(packet)
// }
// }
// }
// RtcpPacket::ApplicationDefined(_) => {
// streams.iter_mut().for_each(|(_, stream)| {
// if stream.source_addr == packet.source_addr
// && stream.destination_addr == packet.destination_addr
// {
// stream.add_rtcp_packet(packet)
// }
// });
// }
// RtcpPacket::PayloadSpecificFeedback(_) => {
// streams.iter_mut().for_each(|(_, stream)| {
// if stream.source_addr == packet.source_addr
// && stream.destination_addr == packet.destination_addr
// {
// stream.add_rtcp_packet(packet)
// }
// });
// }
// RtcpPacket::TransportSpecificFeedback(_) => {
// streams.iter_mut().for_each(|(_, stream)| {
// if stream.source_addr == packet.source_addr
// && stream.destination_addr == packet.destination_addr
// {
// stream.add_rtcp_packet(packet)
// }
// });
// }
// RtcpPacket::ExtendedReport(_) => {
// streams.iter_mut().for_each(|(_, stream)| {
// if stream.source_addr == packet.source_addr
// && stream.destination_addr == packet.destination_addr
// {
// stream.add_rtcp_packet(packet)
// }
// });
// }
// RtcpPacket::Other(_) => {
// streams.iter_mut().for_each(|(_, stream)| {
// if stream.source_addr == packet.source_addr
// && stream.destination_addr == packet.destination_addr
// {
// stream.add_rtcp_packet(packet)
// }
// });
// }
for ssrc in ssrcs {
let maybe_stream = get_rtcp_stream(
streams,
Expand Down

0 comments on commit 3558ae6

Please sign in to comment.