From a8f643873ac209fad6c6e151c5fa2d6ad706cee9 Mon Sep 17 00:00:00 2001 From: "jiyong.min" Date: Thu, 10 Feb 2022 20:52:13 +0900 Subject: [PATCH] Replace deprecated 'method' to 'video-direction' since Gstreamer v1.19 'method' property of videoflip is deprecated and it is changed to 'video-direction'. Values are the same value with the original 'method'. Change-Id: I3167a4778279409b5a64a277508f5b4b3a14ca06 --- gstcs/mm_util_gstcs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gstcs/mm_util_gstcs.c b/gstcs/mm_util_gstcs.c index 2ebb6fa..f797c1c 100644 --- a/gstcs/mm_util_gstcs.c +++ b/gstcs/mm_util_gstcs.c @@ -198,9 +198,9 @@ _mm_link_pipeline(gstreamer_s* pGstreamer_s, int value) g_object_set(pGstreamer_s->appsrc, "num-buffers", 1, NULL); g_object_set(pGstreamer_s->appsrc, "is-live", TRUE, NULL); /* add because of gstreamer_s time issue */ - g_object_set(pGstreamer_s->videoflip, "method", value, NULL); /* GST_VIDEO_FLIP_METHOD_IDENTITY (0): none- Identity (no rotation) (1): clockwise - Rotate clockwise 90 degrees (2): rotate-180 - Rotate 180 degrees (3): counterclockwise - Rotate counter-clockwise 90 degrees (4): horizontal-flip - Flip horizontally (5): vertical-flip - Flip vertically (6): upper-left-diagonal - Flip across upper left/lower right diagonal (7): upper-right-diagonal - Flip across upper right/lower left diagonal */ + /* Values are 'GstVideoOrientationMethod' in gst-plugins-base/gst-libs/gst/video/video.h */ + g_object_set(pGstreamer_s->videoflip, "video-direction", value, NULL); - /*g_object_set(pGstreamer_s->appsink, "drop", TRUE, NULL);*/ g_object_set(pGstreamer_s->appsink, "emit-signals", TRUE, "sync", FALSE, NULL); gstcs_fleave(); @@ -479,7 +479,7 @@ static int _mm_imgp_gstcs_processing(gstreamer_s* pGstreamer_s, unsigned char *s 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); + 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); -- 2.7.4