Change stream buffer data pointer location. 10/212310/1 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.022041 accepted/tizen/5.5/unified/mobile/hotfix/20201027.084020 accepted/tizen/unified/20190821.111113 submit/tizen/20190821.040016 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185103 tizen_5.5.m2_release
authorHyunsoo Park <hance.park@samsung.com>
Tue, 20 Aug 2019 07:36:08 +0000 (16:36 +0900)
committerHyunsoo Park <hance.park@samsung.com>
Tue, 20 Aug 2019 07:42:03 +0000 (16:42 +0900)
Data pointer of 'MediaPacket' is assigned to 'data[0]' member variable but 'gst_buffer_append_memory' api try to get pointer from 'handle.paddr[0]'.
So i change it to 'data[0]'.

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

index 8218720..49a0505 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-streamrecorder
 Summary:    Media Stream Recorder library
-Version:    0.0.25
+Version:    0.0.26
 Release:    0
 Group:      Multimedia/Other
 License:    Apache-2.0
index fe6b723..1846328 100644 (file)
@@ -501,7 +501,7 @@ int _mmstreamrecorder_push_stream_buffer(MMHandleType handle, MMStreamRecorderSt
                        MMVideoBuffer *video_buf = (MMVideoBuffer *)buffer;
                        /* Buffer at 0th position */
                        gst_buffer_append_memory(stream_buffer->buffer, gst_memory_new_wrapped(GST_MEMORY_FLAG_READONLY,
-                                                               video_buf->handle.paddr[0], size, 0, size, video_buf->handle.paddr[0], NULL));
+                                                               video_buf->data[0], size, 0, size, video_buf->data[0], NULL));
                        /* Buffer at 1st position */
                        gst_buffer_append_memory(stream_buffer->buffer, gst_memory_new_wrapped(GST_MEMORY_FLAG_READONLY,
                                                                video_buf, sizeof(MMVideoBuffer), 0, sizeof(MMVideoBuffer), stream_buffer, _mmstreamrecorder_buffer_destroy));