video: fix order of arguments for VideoFormat::from_masks()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1609>
This commit is contained in:
acpiccolo 2024-12-10 11:50:07 +01:00
parent 1410e2f3a3
commit 6deb59062a

View file

@ -262,8 +262,8 @@ impl crate::VideoFormat {
bpp: u32, bpp: u32,
endianness: crate::VideoEndianness, endianness: crate::VideoEndianness,
red_mask: u32, red_mask: u32,
blue_mask: u32,
green_mask: u32, green_mask: u32,
blue_mask: u32,
alpha_mask: u32, alpha_mask: u32,
) -> Self { ) -> Self {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
@ -274,8 +274,8 @@ impl crate::VideoFormat {
bpp as i32, bpp as i32,
endianness.into_glib(), endianness.into_glib(),
red_mask, red_mask,
blue_mask,
green_mask, green_mask,
blue_mask,
alpha_mask, alpha_mask,
)) ))
} }