Fixed an error where lock is called twice when the surface have multiple bos 97/203497/1 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.004436 accepted/tizen/5.5/unified/mobile/hotfix/20201027.063615 accepted/tizen/unified/20190418.145716 submit/tizen/20190418.022114 submit/tizen_5.5/20191031.000010 submit/tizen_5.5_mobile_hotfix/20201026.185106 tizen_5.5.m2_release
authorSejun Park <sejun79.park@samsung.com>
Mon, 15 Apr 2019 08:46:13 +0000 (17:46 +0900)
committerSejun Park <sejun79.park@samsung.com>
Mon, 15 Apr 2019 08:46:13 +0000 (17:46 +0900)
Change-Id: I563afc5e28374d1242ac1164b17e57a41f03e803

omx/gstomxbufferpool.c
packaging/gst-omx.spec

index 7f3decc..0177f7f 100644 (file)
@@ -153,6 +153,8 @@ gst_omx_video_memory_map (GstVideoMeta * meta, guint plane, GstMapInfo * info,
   *data = surface_info.planes[plane].ptr;
   *stride = surface_info.planes[plane].stride;
 
+  tbm_surface_unmap (((GstTizenMemory *)mem)->surface);
+
   GST_DEBUG ("_video_memory_map -> plane : %d, data : %p, stride : %d",
       plane, *data, *stride);
 
@@ -170,7 +172,6 @@ gst_omx_video_memory_unmap (GstVideoMeta * meta, guint plane, GstMapInfo * info)
     return FALSE;
   }
 
-  tbm_surface_unmap (((GstTizenMemory *)mem)->surface);
   GST_DEBUG ("_video_memory_unmap -> plane : %d", plane);
   return TRUE;
 }
index 310cf38..5d4efc2 100755 (executable)
@@ -1,7 +1,7 @@
 Name:           gst-omx
 Summary:        GStreamer plug-in that allows communication with OpenMAX IL components
 Version:        1.3.0
-Release:        2
+Release:        3
 License:        LGPL-2.1+
 Group:          Multimedia/Framework
 Source0:        %{name}-%{version}.tar.gz