Permalink
Browse files

Revert "vidc: use O_SYNC instead of O_DSYNC"

This reverts commit 6328de6.
  • Loading branch information...
1 parent 1bcece5 commit e091e98fad643cc3d3e75d05a28d56367e0c5813 @intervigilium intervigilium committed Jun 13, 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_SYNC);
+ ion_device_fd = open (MEM_DEVICE,O_RDONLY|O_DSYNC);
if(ion_device_fd < 0)
{
DEBUG_PRINT_ERROR("\nERROR: ION Device open() Failed");
@@ -1103,7 +1103,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_SYNC);
+ recon_buff[count].ion_device_fd = open (MEM_DEVICE,O_RDONLY|O_DSYNC);
if(recon_buff[count].ion_device_fd < 0)
{
DEBUG_PRINT_ERROR("\nERROR: ION Device open() Failed");

0 comments on commit e091e98

Please sign in to comment.