summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2016-02-24 18:51:36 +0900
committerjk7744.park <jk7744.park@samsung.com>2016-02-24 18:51:36 +0900
commit17b6015726f2e84f7ea416cebb7f119671a25fd7 (patch)
tree0d434766362d720089c85bb4993dbb455e839e9d
parent7a70cadf0d29290af314cb8852108d900efff74d (diff)
downloadmediacodec-tizen_2.4.tar.gz
mediacodec-tizen_2.4.tar.bz2
mediacodec-tizen_2.4.zip
Tizen 2.4.0 rev3 SDK Public Releasetizen_2.4
-rwxr-xr-xsrc/media_codec_port_gst.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/media_codec_port_gst.c b/src/media_codec_port_gst.c
index 8da277e..1e6fc16 100755
--- a/src/media_codec_port_gst.c
+++ b/src/media_codec_port_gst.c
@@ -2328,13 +2328,10 @@ int __mc_output_buffer_finalize_cb(media_packet_h packet, int error_code, void *
mem = gst_buffer_peek_memory(buffer,n-1);
gst_memory_map(mem, &map, GST_MAP_READ);
mm_video_buf = (MMVideoBuffer *)map.data;
- if (!mm_video_buf) {
- LOGW("gstbuffer map.data is null");
- } else {
- for (i = 0; i < MM_VIDEO_BUFFER_PLANE_MAX; i++) {
- if (mm_video_buf->handle.bo[i]) {
- tbm_bo_unref (mm_video_buf->handle.bo[i]);
- }
+
+ for (i = 0; i < MM_VIDEO_BUFFER_PLANE_MAX; i++) {
+ if (mm_video_buf->handle.bo[i]) {
+ tbm_bo_unref (mm_video_buf->handle.bo[i]);
}
}
gst_memory_unmap(mem, &map);