mirror of https://github.com/mpv-player/mpv
open w/O_CREAT requires a third argument, mode!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5882 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
55b93890d6
commit
493d497996
|
@ -130,7 +130,7 @@ static uint32_t preinit(const char *arg){
|
|||
}
|
||||
|
||||
#else
|
||||
vo_mpegpes_fd=open("grab.mpg",O_WRONLY|O_CREAT);
|
||||
vo_mpegpes_fd=open("grab.mpg",O_WRONLY|O_CREAT,0666);
|
||||
if(vo_mpegpes_fd<0){
|
||||
perror("vo_mpegpes");
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue