From 5f5ab9e1cbcbbbcda5b47deb6c644aea217e2aab Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Tue, 22 Aug 2023 11:55:17 +0900 Subject: [PATCH] Bug fix - Incorrect information in preview callback - The width and height information in preview callback can be incorrect. It's happened when "VideoFilterElement" is added and it rotates preview frames as 90CW or 90CCW. [Version] 0.10.298 [Issue Type] Bug fix Change-Id: I87983fac0daac2b75b63db9e2bcdba74a7798347 Signed-off-by: Jeongmo Yang --- packaging/libmm-camcorder.spec | 2 +- src/mm_camcorder_gstcommon.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/libmm-camcorder.spec b/packaging/libmm-camcorder.spec index b0a033c..3306176 100755 --- a/packaging/libmm-camcorder.spec +++ b/packaging/libmm-camcorder.spec @@ -1,6 +1,6 @@ Name: libmm-camcorder Summary: Camera and recorder library -Version: 0.10.297 +Version: 0.10.298 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/mm_camcorder_gstcommon.c b/src/mm_camcorder_gstcommon.c index 75c8873..e234924 100644 --- a/src/mm_camcorder_gstcommon.c +++ b/src/mm_camcorder_gstcommon.c @@ -2197,7 +2197,7 @@ static GstPadProbeReturn __mmcamcorder_video_dataprobe_preview(GstPad *pad, GstP } /* make sample with buffer and caps */ - caps = gst_pad_get_allowed_caps(pad); + caps = gst_pad_get_current_caps(pad); mmf_return_val_if_fail(caps, GST_PAD_PROBE_OK); sample = gst_sample_new(buffer, caps, NULL, NULL); -- 2.34.1