replace 'gst_element_get_request_pad' to 'gst_element_request_pad_simple' 11/270911/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.063016 accepted/tizen/7.0/unified/hotfix/20221116.105432 accepted/tizen/unified/20220217.153523 submit/tizen/20220216.051033 tizen_7.0_m2_release
authorHyunsoo Park <hance.park@samsung.com>
Fri, 11 Feb 2022 04:28:50 +0000 (13:28 +0900)
committerHyunsoo Park <hance.park@samsung.com>
Fri, 11 Feb 2022 04:28:50 +0000 (13:28 +0900)
- 'gst_element_get_request_pad' function was deprecated since gstreamer 1.20.0

Change-Id: Icc66246f54fbe84557e0c14f46366af8d9320c6a
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
packaging/libmm-streamrecorder.spec
src/mm_streamrecorder_recorder.c

index a93abec..2a41463 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-streamrecorder
 Summary:    Media Stream Recorder library
-Version:    0.0.37
+Version:    0.0.38
 Release:    0
 Group:      Multimedia/Other
 License:    Apache-2.0
index db9a0b2..27b54a4 100644 (file)
@@ -893,7 +893,7 @@ int _mmstreamrecorder_create_encodesink_bin(MMHandleType handle, MMStreamRecorde
        _mmstreamrec_dbg_log("Element add complete");
 
        if (profile == MM_STREAMRECORDER_ENCBIN_PROFILE_VIDEO) {
-               pad = gst_element_get_request_pad(sc->encode_element[_MMSTREAMRECORDER_ENCSINK_ENCBIN].gst, "video");
+               pad = gst_element_request_pad_simple(sc->encode_element[_MMSTREAMRECORDER_ENCSINK_ENCBIN].gst, "video");
                if (gst_element_add_pad(sc->encode_element[_MMSTREAMRECORDER_ENCSINK_BIN].gst, gst_ghost_pad_new("video_sink0", pad)) < 0) {
                        gst_object_unref(pad);
                        pad = NULL;
@@ -905,7 +905,7 @@ int _mmstreamrecorder_create_encodesink_bin(MMHandleType handle, MMStreamRecorde
                pad = NULL;
 
                if (sc->audio_enable == TRUE) {
-                       pad = gst_element_get_request_pad(sc->encode_element[_MMSTREAMRECORDER_ENCSINK_ENCBIN].gst, "audio");
+                       pad = gst_element_request_pad_simple(sc->encode_element[_MMSTREAMRECORDER_ENCSINK_ENCBIN].gst, "audio");
                        if (gst_element_add_pad(sc->encode_element[_MMSTREAMRECORDER_ENCSINK_BIN].gst, gst_ghost_pad_new("audio_sink0", pad)) < 0) {
                                gst_object_unref(pad);
                                pad = NULL;
@@ -917,7 +917,7 @@ int _mmstreamrecorder_create_encodesink_bin(MMHandleType handle, MMStreamRecorde
                        pad = NULL;
                }
        } else if (profile == MM_STREAMRECORDER_ENCBIN_PROFILE_AUDIO) {
-               pad = gst_element_get_request_pad(sc->encode_element[_MMSTREAMRECORDER_ENCSINK_ENCBIN].gst, "audio");
+               pad = gst_element_request_pad_simple(sc->encode_element[_MMSTREAMRECORDER_ENCSINK_ENCBIN].gst, "audio");
                if (gst_element_add_pad(sc->encode_element[_MMSTREAMRECORDER_ENCSINK_BIN].gst, gst_ghost_pad_new("audio_sink0", pad)) < 0) {
                        gst_object_unref(pad);
                        pad = NULL;
@@ -929,7 +929,7 @@ int _mmstreamrecorder_create_encodesink_bin(MMHandleType handle, MMStreamRecorde
                pad = NULL;
        } else {
                /* for stillshot */
-               pad = gst_element_get_request_pad(sc->encode_element[_MMSTREAMRECORDER_ENCSINK_ENCBIN].gst, "image");
+               pad = gst_element_request_pad_simple(sc->encode_element[_MMSTREAMRECORDER_ENCSINK_ENCBIN].gst, "image");
                if (gst_element_add_pad(sc->encode_element[_MMSTREAMRECORDER_ENCSINK_BIN].gst, gst_ghost_pad_new("image_sink0", pad)) < 0) {
                        gst_object_unref(pad);
                        pad = NULL;