From d85753b79e4ce0fa7a5ddac5b2ed0cf65f7aecd8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 27 Dec 2015 02:07:01 +0100 Subject: sub: refactor initialization Just simplify by removing parts not needed anymore. This includes merging dec_sub allocation and initialization (since things making initialization complicated were removed), or format support queries (it simply tries to create a decoder, and if that fails, tries the next one). --- sub/sd.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'sub/sd.h') diff --git a/sub/sd.h b/sub/sd.h index 26f9d4149f..5945b00483 100644 --- a/sub/sd.h +++ b/sub/sd.h @@ -24,7 +24,6 @@ struct sd { struct sd_functions { const char *name; bool accept_packets_in_advance; - bool (*supports_format)(const char *format); int (*init)(struct sd *sd); void (*decode)(struct sd *sd, struct demux_packet *packet); void (*reset)(struct sd *sd); @@ -40,7 +39,6 @@ struct sd_functions { }; struct lavc_conv; -bool lavc_conv_supports_format(const char *format); struct lavc_conv *lavc_conv_create(struct mp_log *log, const char *codec_name, char *extradata, int extradata_len); char *lavc_conv_get_extradata(struct lavc_conv *priv); -- cgit v1.2.3