decoder: removed stream_types
Instead of checking the stream_types bit set, we can simply check whether the methods stream_decode() and file_decode() are implemented.
This commit is contained in:
@@ -579,7 +579,6 @@ const struct decoder_plugin aacPlugin = {
|
||||
.stream_decode = aac_stream_decode,
|
||||
.file_decode = aac_decode,
|
||||
.tag_dup = aacTagDup,
|
||||
.stream_types = INPUT_PLUGIN_STREAM_FILE | INPUT_PLUGIN_STREAM_URL,
|
||||
.suffixes = aac_suffixes,
|
||||
.mime_types = aac_mimeTypes
|
||||
};
|
||||
|
@@ -141,6 +141,5 @@ const struct decoder_plugin audiofilePlugin = {
|
||||
.name = "audiofile",
|
||||
.file_decode = audiofile_decode,
|
||||
.tag_dup = audiofileTagDup,
|
||||
.stream_types = INPUT_PLUGIN_STREAM_FILE,
|
||||
.suffixes = audiofileSuffixes,
|
||||
};
|
||||
|
@@ -373,7 +373,6 @@ const struct decoder_plugin ffmpeg_plugin = {
|
||||
.try_decode = ffmpeg_try_decode,
|
||||
.stream_decode = ffmpeg_decode,
|
||||
.tag_dup = ffmpeg_tag,
|
||||
.stream_types = INPUT_PLUGIN_STREAM_URL | INPUT_PLUGIN_STREAM_FILE,
|
||||
.suffixes = ffmpeg_suffixes,
|
||||
.mime_types = ffmpeg_mime_types
|
||||
};
|
||||
|
@@ -443,7 +443,6 @@ const struct decoder_plugin oggflacPlugin = {
|
||||
.try_decode = oggflac_try_decode,
|
||||
.stream_decode = oggflac_decode,
|
||||
.tag_dup = oggflac_tag_dup,
|
||||
.stream_types = INPUT_PLUGIN_STREAM_URL | INPUT_PLUGIN_STREAM_FILE,
|
||||
.suffixes = oggflac_suffixes,
|
||||
.mime_types = oggflac_mime_types
|
||||
};
|
||||
@@ -459,7 +458,6 @@ const struct decoder_plugin flacPlugin = {
|
||||
.name = "flac",
|
||||
.stream_decode = flac_decode,
|
||||
.tag_dup = flacTagDup,
|
||||
.stream_types = INPUT_PLUGIN_STREAM_URL | INPUT_PLUGIN_STREAM_FILE,
|
||||
.suffixes = flacSuffixes,
|
||||
.mime_types = flac_mime_types
|
||||
};
|
||||
|
@@ -260,6 +260,5 @@ const struct decoder_plugin modPlugin = {
|
||||
.finish = mod_finishMikMod,
|
||||
.file_decode = mod_decode,
|
||||
.tag_dup = modTagDup,
|
||||
.stream_types = INPUT_PLUGIN_STREAM_FILE,
|
||||
.suffixes = modSuffixes,
|
||||
};
|
||||
|
@@ -1115,7 +1115,6 @@ const struct decoder_plugin mp3Plugin = {
|
||||
.init = mp3_plugin_init,
|
||||
.stream_decode = mp3_decode,
|
||||
.tag_dup = mp3_tag_dup,
|
||||
.stream_types = INPUT_PLUGIN_STREAM_FILE | INPUT_PLUGIN_STREAM_URL,
|
||||
.suffixes = mp3_suffixes,
|
||||
.mime_types = mp3_mime_types
|
||||
};
|
||||
|
@@ -417,7 +417,6 @@ const struct decoder_plugin mp4_plugin = {
|
||||
.name = "mp4",
|
||||
.stream_decode = mp4_decode,
|
||||
.tag_dup = mp4_tag_dup,
|
||||
.stream_types = INPUT_PLUGIN_STREAM_FILE | INPUT_PLUGIN_STREAM_URL,
|
||||
.suffixes = mp4_suffixes,
|
||||
.mime_types = mp4_mime_types,
|
||||
};
|
||||
|
@@ -301,6 +301,5 @@ const struct decoder_plugin mpcPlugin = {
|
||||
.name = "mpc",
|
||||
.stream_decode = mpc_decode,
|
||||
.tag_dup = mpcTagDup,
|
||||
.stream_types = INPUT_PLUGIN_STREAM_URL | INPUT_PLUGIN_STREAM_FILE,
|
||||
.suffixes = mpcSuffixes,
|
||||
};
|
||||
|
@@ -346,7 +346,6 @@ const struct decoder_plugin oggflacPlugin = {
|
||||
.try_decode = oggflac_try_decode,
|
||||
.stream_decode = oggflac_decode,
|
||||
.tag_dup = oggflac_TagDup,
|
||||
.stream_types = INPUT_PLUGIN_STREAM_URL | INPUT_PLUGIN_STREAM_FILE,
|
||||
.suffixes = oggflac_Suffixes,
|
||||
.mime_types = oggflac_mime_types
|
||||
};
|
||||
|
@@ -370,7 +370,6 @@ const struct decoder_plugin oggvorbisPlugin = {
|
||||
.try_decode = oggvorbis_try_decode,
|
||||
.stream_decode = oggvorbis_decode,
|
||||
.tag_dup = oggvorbis_TagDup,
|
||||
.stream_types = INPUT_PLUGIN_STREAM_URL | INPUT_PLUGIN_STREAM_FILE,
|
||||
.suffixes = oggvorbis_Suffixes,
|
||||
.mime_types = oggvorbis_MimeTypes
|
||||
};
|
||||
|
@@ -539,7 +539,6 @@ const struct decoder_plugin wavpack_plugin = {
|
||||
.stream_decode = wavpack_streamdecode,
|
||||
.file_decode = wavpack_filedecode,
|
||||
.tag_dup = wavpack_tagdup,
|
||||
.stream_types = INPUT_PLUGIN_STREAM_FILE | INPUT_PLUGIN_STREAM_URL,
|
||||
.suffixes = wavpack_suffixes,
|
||||
.mime_types = wavpack_mime_types
|
||||
};
|
||||
|
Reference in New Issue
Block a user