summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2004-10-30 13:34:33 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2004-10-30 13:34:33 +0000
commit6873643a5858734bf663c2145a4cd58362f05ea6 (patch)
tree5d981d7ea8a2c7ee36e127e69657145002dde96c
parent5afc2278c2e23353a411ae0b0dd8e2856eb94e86 (diff)
downloadxine-lib-6873643a5858734bf663c2145a4cd58362f05ea6.tar.gz
xine-lib-6873643a5858734bf663c2145a4cd58362f05ea6.tar.bz2
fix time/position displaying for dvds
CVS patchset: 7090 CVS date: 2004/10/30 13:34:33
-rw-r--r--src/xine-engine/input_cache.c7
1 files 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;
}