From: Jeongmo Yang Date: Tue, 22 Aug 2023 02:55:17 +0000 (+0900) Subject: Bug fix - Incorrect information in preview callback X-Git-Tag: accepted/tizen/unified/20230823.173935^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f5ab9e1cbcbbbcda5b47deb6c644aea217e2aab;p=platform%2Fcore%2Fmultimedia%2Flibmm-camcorder.git 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 --- 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);