diff options
author | wm4 <wm4@nowhere> | 2013-09-07 20:24:02 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-07 20:34:49 +0200 |
commit | fde0f40e873c9539e6554da8288b4912b8e0666c (patch) | |
tree | 9334ad4d246a4a2bbd27ad63ee736d2a9b91b87b /sub/draw_bmp.h | |
parent | 9d0d2443fb379550924c3e94a16d77c37ed363a1 (diff) | |
download | mpv-fde0f40e873c9539e6554da8288b4912b8e0666c.tar.bz2 mpv-fde0f40e873c9539e6554da8288b4912b8e0666c.tar.xz |
find_subfiles: use stat() instead of opening the file to check existence
Use mp_path_exists() to check for existence of a file (which in turn
uses stat()), instead of opening and closing it. The difference is that
if we don't have sufficient permissions to read the subtitle files, we
will loudly complain. Personally, I prefer this behavior.
Diffstat (limited to 'sub/draw_bmp.h')
0 files changed, 0 insertions, 0 deletions