oggflac: removed the obsolete try_decode() method

This commit is contained in:
Max Kellermann 2008-11-11 17:17:06 +01:00
parent 9eed41911f
commit 81d2076bcf

View File

@ -279,17 +279,15 @@ static struct tag *oggflac_TagDup(const char *file)
return data.tag;
}
static bool oggflac_try_decode(struct input_stream *inStream)
{
return ogg_stream_type_detect(inStream) == FLAC;
}
static void
oggflac_decode(struct decoder * mpd_decoder, struct input_stream *inStream)
{
OggFLAC__SeekableStreamDecoder *decoder = NULL;
FlacData data;
if (ogg_stream_type_detect(inStream) != FLAC)
return;
init_FlacData(&data, mpd_decoder, inStream);
if (!(decoder = full_decoder_init_and_read_metadata(&data, 0))) {
@ -339,7 +337,6 @@ static const char *const oggflac_mime_types[] = {
const struct decoder_plugin oggflacPlugin = {
.name = "oggflac",
.try_decode = oggflac_try_decode,
.stream_decode = oggflac_decode,
.tag_dup = oggflac_TagDup,
.suffixes = oggflac_Suffixes,