oggflac: removed the obsolete try_decode() method
This commit is contained in:
parent
9eed41911f
commit
81d2076bcf
@ -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[] = {
|
|||||||
|
|
||||||
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user