]> git.sesse.net Git - vlc/commitdiff
Fix typo in src/input/stream.c to use CAN_FASTSEEK instead of CAN_SEEK
authorChristopher Rath <car@research.att.com>
Wed, 2 Sep 2009 17:04:11 +0000 (20:04 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 2 Sep 2009 17:05:08 +0000 (20:05 +0300)
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@remlab.net>
src/input/stream.c

index a616705931119ee547c89bde29188f13c8c45ccb..e97e5862ced96b78cf0065a1a715afa2db203a50 100644 (file)
@@ -1158,7 +1158,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;