diff options
author | Max Kellermann <max@duempel.org> | 2008-11-10 15:07:01 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-10 15:07:01 +0100 |
commit | ff1acefb2115252cb27f0d0dc6219a527e258049 (patch) | |
tree | f264bf133731dfb33d0da8bb3438351f6bed570a /src/decoder/ffmpeg_plugin.c | |
parent | 10eea9d9815c37077d0d0bde98ae4daeed3d101b (diff) | |
download | mpd-ff1acefb2115252cb27f0d0dc6219a527e258049.tar.gz mpd-ff1acefb2115252cb27f0d0dc6219a527e258049.tar.xz mpd-ff1acefb2115252cb27f0d0dc6219a527e258049.zip |
decoder: removed plugin method try_decode()
Instead of having a seprate try_decode() method, let the
stream_decode() and file_decode() methods decide whether they are able
to decode the song.
Diffstat (limited to 'src/decoder/ffmpeg_plugin.c')
-rw-r--r-- | src/decoder/ffmpeg_plugin.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/decoder/ffmpeg_plugin.c b/src/decoder/ffmpeg_plugin.c index 41eb4b4d3..7eeb785bb 100644 --- a/src/decoder/ffmpeg_plugin.c +++ b/src/decoder/ffmpeg_plugin.c @@ -193,12 +193,6 @@ ffmpeg_helper(struct input_stream *input, return ret; } -static bool -ffmpeg_try_decode(struct input_stream *input) -{ - return ffmpeg_helper(input, NULL, NULL); -} - static enum decoder_command ffmpeg_send_packet(struct decoder *decoder, struct input_stream *is, const AVPacket *packet, @@ -370,7 +364,6 @@ static const char *const ffmpeg_mime_types[] = { const struct decoder_plugin ffmpeg_plugin = { .name = "ffmpeg", .init = ffmpeg_init, - .try_decode = ffmpeg_try_decode, .stream_decode = ffmpeg_decode, .tag_dup = ffmpeg_tag, .suffixes = ffmpeg_suffixes, |