From c29af045ca7081dce457ebd25a025248cfda3a67 Mon Sep 17 00:00:00 2001 From: George Politis Date: Thu, 3 Oct 2019 16:11:38 +0200 Subject: [PATCH] limits warnings about packet being dropped at the track projection level to VP8 --- .../cc/AdaptiveTrackProjection.java | 40 +++++++++++-------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/src/main/java/org/jitsi/videobridge/cc/AdaptiveTrackProjection.java b/src/main/java/org/jitsi/videobridge/cc/AdaptiveTrackProjection.java index bea704eda4..b620c71b26 100644 --- a/src/main/java/org/jitsi/videobridge/cc/AdaptiveTrackProjection.java +++ b/src/main/java/org/jitsi/videobridge/cc/AdaptiveTrackProjection.java @@ -191,25 +191,31 @@ public boolean accept(@NotNull RawPacket rtpPacket) if (encoding == null) { MediaStreamTrackDesc sourceTrack = getSource(); - if (sourceTrack != null) + + // We're exclusively interesting in finding issues with VP8 support + // at the moment. + if (Constants.VP8.equalsIgnoreCase(contextCopy.getFormat().getEncoding())) { - MediaStreamTrackReceiver mediaStreamTrackReceiver - = sourceTrack.getMediaStreamTrackReceiver(); - - logger.warn( - "Dropping an RTP packet, because egress was unable " + - "to find an encoding for raw packet " + - mediaStreamTrackReceiver - .getStream().packetToString(rtpPacket) - + ". Ingress is aware of these tracks: " - + Arrays.toString( + if (sourceTrack != null) + { + MediaStreamTrackReceiver mediaStreamTrackReceiver + = sourceTrack.getMediaStreamTrackReceiver(); + + logger.warn( + "Dropping an RTP packet, because egress was unable " + + "to find an encoding for raw packet " + + mediaStreamTrackReceiver + .getStream().packetToString(rtpPacket) + + ". Ingress is aware of these tracks: " + + Arrays.toString( mediaStreamTrackReceiver.getMediaStreamTracks())); - } - else - { - logger.warn( - "Dropping an RTP packet, because egress was unable " + - "to find an encoding for raw packet " + rtpPacket); + } + else + { + logger.warn( + "Dropping an RTP packet, because egress was unable " + + "to find an encoding for raw packet " + rtpPacket); + } } return false;