Commit 81d2076b authored by Max Kellermann's avatar Max Kellermann

oggflac: removed the obsolete try_decode() method

parent 9eed4191
...@@ -279,17 +279,15 @@ static struct tag *oggflac_TagDup(const char *file) ...@@ -279,17 +279,15 @@ static struct tag *oggflac_TagDup(const char *file)
return data.tag; return data.tag;
} }
static bool oggflac_try_decode(struct input_stream *inStream)
{
return ogg_stream_type_detect(inStream) == FLAC;
}
static void static void
oggflac_decode(struct decoder * mpd_decoder, struct input_stream *inStream) oggflac_decode(struct decoder * mpd_decoder, struct input_stream *inStream)
{ {
OggFLAC__SeekableStreamDecoder *decoder = NULL; OggFLAC__SeekableStreamDecoder *decoder = NULL;
FlacData data; FlacData data;
if (ogg_stream_type_detect(inStream) != FLAC)
return;
init_FlacData(&data, mpd_decoder, inStream); init_FlacData(&data, mpd_decoder, inStream);
if (!(decoder = full_decoder_init_and_read_metadata(&data, 0))) { if (!(decoder = full_decoder_init_and_read_metadata(&data, 0))) {
...@@ -339,7 +337,6 @@ static const char *const oggflac_mime_types[] = { ...@@ -339,7 +337,6 @@ static const char *const oggflac_mime_types[] = {
const struct decoder_plugin oggflacPlugin = { const struct decoder_plugin oggflacPlugin = {
.name = "oggflac", .name = "oggflac",
.try_decode = oggflac_try_decode,
.stream_decode = oggflac_decode, .stream_decode = oggflac_decode,
.tag_dup = oggflac_TagDup, .tag_dup = oggflac_TagDup,
.suffixes = oggflac_Suffixes, .suffixes = oggflac_Suffixes,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment