replace g_memdup() to g_memdup2() 89/267889/1 accepted/tizen/unified/20211222.230637 submit/tizen/20211212.233427
authorJiyong Min <jiyong.min@samsung.com>
Mon, 13 Dec 2021 04:11:35 +0000 (13:11 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Mon, 13 Dec 2021 04:11:35 +0000 (13:11 +0900)
  - g_memdup() was removed in glib2

Change-Id: I363223630eadd1c0297eb0a40fda79aead7e3dfb

packaging/libmedia-thumbnail.spec
src/media-thumbnail.c

index c218607..ee35ff6 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmedia-thumbnail
 Summary:    Media thumbnail service library for multimedia applications
-Version: 0.3.3
+Version: 0.3.4
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0 and PD
index e241509..d719f7f 100755 (executable)
@@ -211,7 +211,7 @@ static int __get_video_meta(int cdis_value, const char *path, int *video_track_n
        *width = _width;
        *height = _height;
        *frame_size = _frame_size;
-       *frame = g_memdup(_frame, _frame_size);
+       *frame = g_memdup2(_frame, _frame_size);
 
        mm_file_destroy_content_attrs(content);