summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyong Min <jiyong.min@samsung.com>2022-02-08 11:58:46 +0900
committerJiyong Min <jiyong.min@samsung.com>2022-02-10 10:10:40 +0900
commit66f021c914b07d609320cd0f237bd8957606c3dc (patch)
tree39b648a4cfd0b8b595262b5ea07dca0e04e5f05f
parent2cbe4704e846ed99d15481bd2016e2357da4cf45 (diff)
downloadlibmm-imgp-gstcs-submit/tizen/20220210.065132.tar.gz
libmm-imgp-gstcs-submit/tizen/20220210.065132.tar.bz2
libmm-imgp-gstcs-submit/tizen/20220210.065132.zip
Fix 'internal data stream error' due to 'video flip' since Gstreamer v1.19submit/tizen/20220210.065132accepted/tizen/unified/20220212.064830
If the expected resolution as a result of video flip is set to the caps value of the next element of video flip, 'not negotiated' error occurs. Therefore, when attempting rotation, modify to avoid resolution and other unnecessary settings. Change-Id: I2e122874d78fd379139226a69b6ea9cb937c07e3
-rw-r--r--gstcs/mm_util_gstcs.c5
-rw-r--r--packaging/libmm-imgp-gstcs.spec2
2 files changed, 5 insertions, 2 deletions
diff --git a/gstcs/mm_util_gstcs.c b/gstcs/mm_util_gstcs.c
index c99d0cd..2ebb6fa 100644
--- a/gstcs/mm_util_gstcs.c
+++ b/gstcs/mm_util_gstcs.c
@@ -476,7 +476,10 @@ static int _mm_imgp_gstcs_processing(gstreamer_s* pGstreamer_s, unsigned char *s
}
gst_app_src_set_caps(GST_APP_SRC(pGstreamer_s->appsrc), src_caps);
- gst_app_sink_set_caps(GST_APP_SINK(pGstreamer_s->appsink), dst_caps);
+ if (pImgp_info->angle == MM_UTIL_ROTATE_0)
+ gst_app_sink_set_caps(GST_APP_SINK(pGstreamer_s->appsink), dst_caps);
+ else
+ gstcs_debug("Don't set the caps of app_sink when angle is %d ", pImgp_info->angle);
if ((pImgp_info->src_width != src_stride) || (pImgp_info->src_height != src_elevation)) {
ret = _mm_push_buffer_into_pipeline_new(src, pGstreamer_s, pImgp_info->src_format, pImgp_info->src_width, pImgp_info->src_height, src_stride, src_elevation);
diff --git a/packaging/libmm-imgp-gstcs.spec b/packaging/libmm-imgp-gstcs.spec
index cc69167..0023d9c 100644
--- a/packaging/libmm-imgp-gstcs.spec
+++ b/packaging/libmm-imgp-gstcs.spec
@@ -1,6 +1,6 @@
Name: libmm-imgp-gstcs
Summary: Multimedia Framework Utility Library
-Version: 0.24
+Version: 0.25
Release: 16
Group: System/Libraries
License: Apache-2.0