Per Kjellander fb8641c4e6 Drop frames in RtpVideoSender::OnEncodedImage if stream disabled
Drops frames if the encoder has been configured with a new set of rtp
streams and a stray frame is returned from an encoder. This can happen with
hardware encoders that may deliver frames on a separate thread than were
they are configured.

This cl disable sending media on the RTP module a video layer is connected to and there by, old frames are dropped.

Bug: webrtc:1200, b/201798527
Change-Id: Id6bcfc3a846f6b8ed3b645cbbde571b819611a75
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/271122
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Per Kjellander <perkj@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37744}
2022-08-11 08:40:01 +00:00
..
2022-05-17 12:00:45 +00:00
2022-03-23 10:23:54 +00:00
2020-10-02 12:33:34 +00:00
2022-06-03 12:01:46 +00:00
2021-05-29 07:37:33 +00:00
2022-07-05 09:59:33 +00:00
2022-05-17 12:00:45 +00:00