diff options
author | Max Kellermann <max@duempel.org> | 2008-10-29 17:28:47 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-29 17:28:47 +0100 |
commit | be90199c5ace71eb3411294159fec6adcc0d4404 (patch) | |
tree | aac2bed6180a800b9270427a1242ba356aed8ff3 /src/decoder/mp4_plugin.c | |
parent | d6c4441c785d5ae41feba865727fd7ecdfbad361 (diff) | |
download | mpd-be90199c5ace71eb3411294159fec6adcc0d4404.tar.gz mpd-be90199c5ace71eb3411294159fec6adcc0d4404.tar.xz mpd-be90199c5ace71eb3411294159fec6adcc0d4404.zip |
decoder_api: removed decoder_clear()
Call ob_clear() in decoder_command_finished() instead of implementing
that call in every decoder plugin.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/mp4_plugin.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/decoder/mp4_plugin.c b/src/decoder/mp4_plugin.c index a9fa061d0..f2e83d2cd 100644 --- a/src/decoder/mp4_plugin.c +++ b/src/decoder/mp4_plugin.c @@ -224,7 +224,6 @@ mp4_decode(struct decoder *mpd_decoder, struct input_stream *inStream) if (seeking && seekPositionFound) { seekPositionFound = false; - decoder_clear(mpd_decoder); seeking = 0; decoder_command_finished(mpd_decoder); } @@ -296,10 +295,9 @@ mp4_decode(struct decoder *mpd_decoder, struct input_stream *inStream) if (!initialized) return -1; - if (decoder_get_command(mpd_decoder) == DECODE_COMMAND_SEEK && seeking) { - decoder_clear(mpd_decoder); + if (decoder_get_command(mpd_decoder) == DECODE_COMMAND_SEEK && seeking) decoder_command_finished(mpd_decoder); - } + decoder_flush(mpd_decoder); return 0; |