[vlc-devel] [PATCH 1/2] access: file: remote FS can't FAST_SEEK
Thomas Guillem
thomas at gllm.fr
Tue Apr 16 13:30:39 CEST 2019
Reminder: FAST_SEEK set to false will trigger remote tweaks like the stream prefetcher.
---
modules/access/file.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/access/file.c b/modules/access/file.c
index 85e3d92015..58bd0d7b41 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -317,10 +317,14 @@ static int FileControl( stream_t *p_access, int i_query, va_list args )
switch( i_query )
{
case STREAM_CAN_SEEK:
- case STREAM_CAN_FASTSEEK:
pb_bool = va_arg( args, bool * );
*pb_bool = (p_access->pf_seek != NoSeek);
break;
+ case STREAM_CAN_FASTSEEK:
+ pb_bool = va_arg( args, bool * );
+ *pb_bool = (p_access->pf_seek != NoSeek)
+ && !IsRemote (p_sys->fd, p_access->psz_filepath);
+ break;
case STREAM_CAN_PAUSE:
case STREAM_CAN_CONTROL_PACE:
--
2.20.1
More information about the vlc-devel
mailing list