Permalink
Browse files

vidc: use O_SYNC instead of O_DSYNC

Change-Id: I1f0fb89de5a76a9dea680ee88b61f92907e93919
  • Loading branch information...
1 parent d45b902 commit 6328de6cb650a78052900b62db8035971f78dcf1 @intervigilium intervigilium committed with cyanogen May 11, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 vidc/venc/src/omx_video_base.cpp
  2. +1 −1 vidc/venc/src/video_encoder_device.cpp
@@ -4067,7 +4067,7 @@ int omx_video::alloc_map_ion_memory(int size,struct ion_allocation_data *alloc_d
DEBUG_PRINT_ERROR("\nInvalid input to alloc_map_ion_memory");
return -EINVAL;
}
- ion_device_fd = open (MEM_DEVICE,O_RDONLY|O_DSYNC);
+ ion_device_fd = open (MEM_DEVICE,O_RDONLY|O_SYNC);
if(ion_device_fd < 0)
{
DEBUG_PRINT_ERROR("\nERROR: ION Device open() Failed");
@@ -1088,7 +1088,7 @@ OMX_U32 venc_dev::pmem_allocate(OMX_U32 size, OMX_U32 alignment, OMX_U32 count)
int rc = 0;
#ifdef USE_ION
- recon_buff[count].ion_device_fd = open (MEM_DEVICE,O_RDONLY|O_DSYNC);
+ recon_buff[count].ion_device_fd = open (MEM_DEVICE,O_RDONLY|O_SYNC);
if(recon_buff[count].ion_device_fd < 0)
{
DEBUG_PRINT_ERROR("\nERROR: ION Device open() Failed");

0 comments on commit 6328de6

Please sign in to comment.