Bug fix - Incorrect information in preview callback 58/297658/1 accepted/tizen/unified/20230823.173935
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 08:32:20 +0000 (17:32 +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.298
[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 b0a033c..3306176 100755 (executable)
@@ -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
index 75c8873..e234924 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);