Does the media server process have write access to the directory where you are trying to create the file?
On May 29, 7:31 pm, max <max.xi...@gmail.com> wrote: > Hi Guru, > > I am doing the job to enable sound recording on my device. > > I put all android stuff on a 4GB sdcard, it is formated using EXT3 , > I use chroot /init /mnt/sdcard/rootfs to go into the android world > > Now I have traced that it fails in : > > opencore/fileformats/mp4/composer/src/mediadataatom.cpp, > > int retVal = PVA_FF_AtomUtils::openFile(&_pofstream, targetFileName, > Oscl_File::MODE_READWRITE | Oscl_File::MODE_BINARY, aCacheSize); > > if (_pofstream._filePtr == NULL) > { > _fileWriteError = true; > } > else if (retVal == 0) > { > _targetFileWriteError = true; > if (_pofstream._filePtr != NULL) > { > PVA_FF_AtomUtils::closeFile(&_pofstream); > _pofstream._filePtr = NULL; > } > } > > The retVal is returned as "0", therefore fails, Can anyone put some > light on this? > > Thanks a lot in advance. > > Max --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---