[vlc-devel] commit: Fix typo in src/input/stream. c to use CAN_FASTSEEK instead of CAN_SEEK (Christopher Rath )

git version control git at videolan.org
Wed Sep 2 19:07:25 CEST 2009


vlc | branch: 1.0-bugfix | Christopher Rath <car at research.att.com> | Wed Sep  2 20:04:11 2009 +0300| [d5a90c36637484a60b49e844dd097f03ba0209c5] | committer: Rémi Denis-Courmont 

Fix typo in src/input/stream.c to use CAN_FASTSEEK instead of CAN_SEEK

There is a bug in AStreamSeekStream that is causing all input modules
that support CAN_SEEK to be treated as CAN_FASTSEEK.  This in turn
causes far too many seeks in slower seeking sources which results in
performance problems when playing video.  The fix is a simple change of
CAN_SEEK to CAN_FASTSEEK.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit ce127fd52174cc0bae0a0a890374f43e301a458a)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d5a90c36637484a60b49e844dd097f03ba0209c5
---

 src/input/stream.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/stream.c b/src/input/stream.c
index e148409..4dfdf15 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -1149,7 +1149,7 @@ static int AStreamSeekStream( stream_t *s, int64_t i_pos )
     }
 
     bool   b_afastseek;
-    access_Control( p_access, ACCESS_CAN_SEEK, &b_afastseek );
+    access_Control( p_access, ACCESS_CAN_FASTSEEK, &b_afastseek );
 
     /* FIXME compute seek cost (instead of static 'stupid' value) */
     int64_t i_skip_threshold;




More information about the vlc-devel mailing list