mirror of https://github.com/mpv-player/mpv
player: rename and move find_subfiles.c
This was in sub/, because the code used to be specific to subtitles. It was extended to automatically load external audio files too, and moving the file and renaming it was long overdue.
This commit is contained in:
parent
f287ccf017
commit
8782354e6d
|
@ -195,6 +195,7 @@ SOURCES = audio/audio.c \
|
|||
player/client.c \
|
||||
player/configfiles.c \
|
||||
player/command.c \
|
||||
player/external_files.c \
|
||||
player/loadfile.c \
|
||||
player/main.c \
|
||||
player/misc.c \
|
||||
|
@ -219,7 +220,6 @@ SOURCES = audio/audio.c \
|
|||
stream/stream_rar.c \
|
||||
sub/dec_sub.c \
|
||||
sub/draw_bmp.c \
|
||||
sub/find_subfiles.c \
|
||||
sub/img_convert.c \
|
||||
sub/osd.c \
|
||||
sub/sd_lavc.c \
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "event.h"
|
||||
#include "input.h"
|
||||
#include "common/msg.h"
|
||||
#include "sub/find_subfiles.h"
|
||||
#include "player/external_files.h"
|
||||
|
||||
void mp_event_drop_files(struct input_ctx *ictx, int num_files, char **files,
|
||||
enum mp_dnd_action action)
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include "misc/ctype.h"
|
||||
#include "options/options.h"
|
||||
#include "options/path.h"
|
||||
#include "sub/find_subfiles.h"
|
||||
#include "external_files.h"
|
||||
|
||||
static const char *const sub_exts[] = {"utf", "utf8", "utf-8", "idx", "sub", "srt",
|
||||
"smi", "rt", "txt", "ssa", "aqt", "jss",
|
|
@ -50,7 +50,7 @@
|
|||
#include "demux/demux.h"
|
||||
#include "stream/stream.h"
|
||||
#include "sub/dec_sub.h"
|
||||
#include "sub/find_subfiles.h"
|
||||
#include "external_files.h"
|
||||
#include "video/decode/dec_video.h"
|
||||
#include "video/out/vo.h"
|
||||
|
||||
|
|
|
@ -202,6 +202,7 @@ def build(ctx):
|
|||
( "player/client.c" ),
|
||||
( "player/command.c" ),
|
||||
( "player/configfiles.c" ),
|
||||
( "player/external_files.c" ),
|
||||
( "player/loadfile.c" ),
|
||||
( "player/main.c" ),
|
||||
( "player/misc.c" ),
|
||||
|
@ -251,7 +252,6 @@ def build(ctx):
|
|||
( "sub/ass_mp.c", "libass"),
|
||||
( "sub/dec_sub.c" ),
|
||||
( "sub/draw_bmp.c" ),
|
||||
( "sub/find_subfiles.c" ),
|
||||
( "sub/img_convert.c" ),
|
||||
( "sub/osd.c" ),
|
||||
( "sub/osd_dummy.c", "dummy-osd" ),
|
||||
|
|
Loading…
Reference in New Issue