From 57f24efc62f920e8c4b6e169d943a638fa7ace70 Mon Sep 17 00:00:00 2001 From: Jochen Henneberg Date: Mon, 9 Dec 2024 15:07:24 +0100 Subject: [PATCH] fmp4mux: Log on unsupported orientation enums Part-of: --- mux/fmp4/src/fmp4mux/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mux/fmp4/src/fmp4mux/mod.rs b/mux/fmp4/src/fmp4mux/mod.rs index 90011cb10..a9599bc07 100644 --- a/mux/fmp4/src/fmp4mux/mod.rs +++ b/mux/fmp4/src/fmp4mux/mod.rs @@ -6,6 +6,7 @@ // // SPDX-License-Identifier: MPL-2.0 +use crate::fmp4mux::imp::CAT; use gst::glib; use gst::prelude::*; @@ -140,7 +141,10 @@ pub(crate) fn transform_matrix( gst_video::VideoOrientationMethod::Vert => &FLIP_VERT_MATRIX, gst_video::VideoOrientationMethod::UrLl => &FLIP_ROTATE_90R_MATRIX, gst_video::VideoOrientationMethod::UlLr => &FLIP_ROTATE_90L_MATRIX, - _ => &IDENTITY_MATRIX, + _ => { + gst::info!(CAT, "Orientation {:?} not yet supported", orientation); + &IDENTITY_MATRIX + } } }