Fixate video caps to remove negotiation failure 43/157743/1 accepted/tizen/unified/20171101.064709 submit/tizen/20171031.024842
authorJeongmo Yang <jm80.yang@samsung.com>
Thu, 26 Oct 2017 05:20:21 +0000 (14:20 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Thu, 26 Oct 2017 05:20:21 +0000 (14:20 +0900)
On ARTIK530, negotiation failure is occurred when try video recording.
Because the caps from videosrc_queue is unfixated.

[Version] 0.10.139
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-4.0-unified_20171023.1]

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

index b86a802..b247996 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.138
+Version:    0.10.139
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index e4619bf..1af154a 100644 (file)
@@ -827,6 +827,9 @@ int _mmcamcorder_create_encodesink_bin(MMHandleType handle, MMCamcorderEncodebin
                        caps_from_pad = NULL;
                        gst_object_unref(pad);
                        pad = NULL;
                        caps_from_pad = NULL;
                        gst_object_unref(pad);
                        pad = NULL;
+
+                       /* fixate caps */
+                       video_caps = gst_caps_fixate(video_caps);
                } else {
                        /* Image */
                        MMCAMCORDER_G_OBJECT_GET(sc->element[_MMCAMCORDER_VIDEOSRC_FILT].gst, "caps", &video_caps);
                } else {
                        /* Image */
                        MMCAMCORDER_G_OBJECT_GET(sc->element[_MMCAMCORDER_VIDEOSRC_FILT].gst, "caps", &video_caps);