Mercurial > minori
comparison dep/animia/src/bsd.cpp @ 100:f5940a575d83
track/constants: add many more video formats
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 03 Nov 2023 09:43:04 -0400 |
parents | 18979b066284 |
children |
comparison
equal
deleted
inserted
replaced
99:503bc1547d49 | 100:f5940a575d83 |
---|---|
103 | 103 |
104 int sz = proc_pidfdinfo(pid, info[i].proc_fd, PROC_PIDFDVNODEPATHINFO, &vnodeInfo, PROC_PIDFDVNODEPATHINFO_SIZE); | 104 int sz = proc_pidfdinfo(pid, info[i].proc_fd, PROC_PIDFDVNODEPATHINFO, &vnodeInfo, PROC_PIDFDVNODEPATHINFO_SIZE); |
105 if (sz != PROC_PIDFDVNODEPATHINFO_SIZE) | 105 if (sz != PROC_PIDFDVNODEPATHINFO_SIZE) |
106 continue; | 106 continue; |
107 | 107 |
108 /* I *think* this is correct. For some reason, with VLC on macOS this thinks files are read/write, | 108 /* I'm 99.9% sure this is incorrect. We can't pick up QuickTime files with this :( |
109 which is totally unnecessary and even harmful. */ | 109 |
110 Actually, we can't pick up QuickTime files regardless. WTF? */ | |
110 if ((vnodeInfo.pfi.fi_status & O_ACCMODE) == O_WRONLY) | 111 if ((vnodeInfo.pfi.fi_status & O_ACCMODE) == O_WRONLY) |
111 continue; | 112 continue; |
112 | 113 |
113 ret.push_back(vnodeInfo.pvip.vip_path); | 114 ret.push_back(vnodeInfo.pvip.vip_path); |
114 } | 115 } |