diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-02-26 20:47:49 +0100 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-04-20 04:22:52 +0300 |
commit | 9bcfbe4d4ff8c40fff45798ae7f907118218c17b (patch) | |
tree | 07a19edff1d9e82b45fedb31f10674d899848df7 /sub/find_subfiles.h | |
parent | 4587f030ccded80f3ddb21dab2bca36af42fe497 (diff) | |
download | mpv-9bcfbe4d4ff8c40fff45798ae7f907118218c17b.tar.bz2 mpv-9bcfbe4d4ff8c40fff45798ae7f907118218c17b.tar.xz |
find_subfiles: move sub_filenames() here
Move sub_filenames() and related code from subreader.c to new file
find_subfiles.c. This function is used to find subtitle files that
should be loaded for the current video; this functionality is not
specific to the particular kind of text subtitle handling implemented
in subreader.c.
Also reindent and prettify the moved code a bit.
Diffstat (limited to 'sub/find_subfiles.h')
-rw-r--r-- | sub/find_subfiles.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sub/find_subfiles.h b/sub/find_subfiles.h new file mode 100644 index 0000000000..06105747dc --- /dev/null +++ b/sub/find_subfiles.h @@ -0,0 +1,26 @@ +/* + * This file is part of MPlayer. + * + * MPlayer is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * MPlayer is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with MPlayer; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef MPLAYER_FIND_SUBFILES_H +#define MPLAYER_FIND_SUBFILES_H + +#define MAX_SUBTITLE_FILES 128 + +char **sub_filenames(const char *path, char *fname); + +#endif /* MPLAYER_FINDFILES_H */ |