Bug fix - Incorrect information in preview callback 25/297625/2 accepted/tizen/7.0/unified/20230823.175438
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 22 Aug 2023 02:55:17 +0000 (11:55 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 22 Aug 2023 06:17:09 +0000 (15:17 +0900)
- 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.296
[Issue Type] Bug fix

Change-Id: I87983fac0daac2b75b63db9e2bcdba74a7798347
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/libmm-camcorder.spec
src/mm_camcorder_gstcommon.c

index c2e9124a02efe029b3b77b68b465b7365a14b00d..889495d96e5d4729c4505184ad7673135f3520ec 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.295
+Version:    0.10.296
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 75c887366527404a2902eeb9fac5b188bc7fecaf..e234924dace18089f3df02fd21933756483d0c10 100644 (file)
@@ -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);