From 0d45870cea6836cd48e6953f4e67756b2502e22c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:05 +0200 Subject: added decoder_clear() and decoder_flush() We are now beginning to remove direct structure accesses from the decoder plugins. decoder_clear() and decoder_flush() mask two very common buffer functions. --- src/inputPlugins/mp4_plugin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/inputPlugins/mp4_plugin.c') diff --git a/src/inputPlugins/mp4_plugin.c b/src/inputPlugins/mp4_plugin.c index 197d00627..f917ec345 100644 --- a/src/inputPlugins/mp4_plugin.c +++ b/src/inputPlugins/mp4_plugin.c @@ -211,7 +211,7 @@ static int mp4_decode(struct decoder * mpd_decoder, InputStream * inStream) if (seeking && seekPositionFound) { seekPositionFound = 0; - ob_clear(); + decoder_clear(mpd_decoder); seeking = 0; dc_command_finished(); } @@ -288,10 +288,10 @@ static int mp4_decode(struct decoder * mpd_decoder, InputStream * inStream) return -1; if (dc.command == DECODE_COMMAND_SEEK && seeking) { - ob_clear(); + decoder_clear(mpd_decoder); dc_command_finished(); } - ob_flush(); + decoder_flush(mpd_decoder); return 0; } -- cgit v1.2.3