Replace deprecated 'method' to 'video-direction' since Gstreamer v1.19 81/270881/3 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/hotfix/20221116.105422 accepted/tizen/unified/20220223.132412 submit/tizen/20220222.011352 tizen_7.0_m2_release
authorjiyong.min <jiyong.min@samsung.com>
Thu, 10 Feb 2022 11:52:13 +0000 (20:52 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Fri, 11 Feb 2022 00:38:47 +0000 (09:38 +0900)
'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

index 2ebb6fa..f797c1c 100644 (file)
@@ -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);