Skip to content

rtp: Change RtpBasePay2::ssrc_collision from AtomicU64 to Option<u32>

Martin Nordholts requested to merge martn/gst-plugins-rs:rtp-u32 into main

Rust targets without support for AtomicU64 is still somewhat common. Running

git grep -i 'max_atomic_width: Some(32)' | wc -l

in the Rust compiler repo currently counts to 34 targets.

Change the RtpBasePay2::ssrc_collision from AtomicU64 to Option<u32> and move it to State which is protected by a AtomicRefCell. This way we keep support for these targets.

Merge request reports