From 6873643a5858734bf663c2145a4cd58362f05ea6 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sat, 30 Oct 2004 13:34:33 +0000 Subject: fix time/position displaying for dvds CVS patchset: 7090 CVS date: 2004/10/30 13:34:33 --- src/xine-engine/input_cache.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/xine-engine/input_cache.c b/src/xine-engine/input_cache.c index 92ca9735d..ea240d06d 100644 --- a/src/xine-engine/input_cache.c +++ b/src/xine-engine/input_cache.c @@ -22,7 +22,7 @@ * The goal of this input plugin is to reduce * the number of calls to the real input plugin. * - * $Id: input_cache.c,v 1.1 2004/10/27 13:09:07 miguelfreitas Exp $ + * $Id: input_cache.c,v 1.2 2004/10/30 13:34:33 miguelfreitas Exp $ */ #ifdef HAVE_CONFIG_H @@ -243,7 +243,10 @@ static off_t cache_plugin_seek(input_plugin_t *this_gen, off_t offset, int origi static off_t cache_plugin_get_current_pos(input_plugin_t *this_gen) { cache_input_plugin_t *this = (cache_input_plugin_t *)this_gen; - + + if (!this->buf_len) + this->cur_pos = this->main_input_plugin->get_current_pos(this->main_input_plugin); + return this->cur_pos; } -- cgit v1.2.3