Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
6ef7fa72
Commit
6ef7fa72
authored
Jun 25, 2009
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
file: When loading a non-local file, raise the caching with 700ms.
parent
3c4a11c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
configure.ac
configure.ac
+2
-2
modules/access/file.c
modules/access/file.c
+12
-0
No files found.
configure.ac
View file @
6ef7fa72
...
...
@@ -856,8 +856,8 @@ AC_EGREP_HEADER(strncasecmp,strings.h,[
AC_MSG_RESULT(no)])
dnl Check for headers
AC_CHECK_HEADERS(getopt.h strings.h locale.h)
AC_CHECK_HEADERS(fcntl.h sys/types.h sys/time.h sys/times.h sys/ioctl.h sys/stat.h
xlocale
.h)
AC_CHECK_HEADERS(getopt.h strings.h locale.h
xlocale.h
)
AC_CHECK_HEADERS(fcntl.h sys/types.h sys/time.h sys/times.h sys/ioctl.h sys/stat.h
sys/mount
.h)
AC_CHECK_HEADERS([arpa/inet.h netinet/in.h netinet/udplite.h sys/eventfd.h])
AC_CHECK_HEADERS([net/if.h], [], [],
[
...
...
modules/access/file.c
View file @
6ef7fa72
...
...
@@ -47,6 +47,9 @@
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif
#if HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
#if defined( WIN32 )
# include <io.h>
...
...
@@ -171,6 +174,15 @@ static int Open( vlc_object_t *p_this )
# warning File size not known!
#endif
#if defined(HAVE_SYS_MOUNT_H) && defined(MNT_LOCAL)
struct
statfs
stat
;
if
((
fstatfs
(
fd
,
&
stat
)
==
0
)
&&
!
(
stat
.
f_flags
&
MNT_LOCAL
)
)
{
int
i_cache
=
var_GetInteger
(
p_access
,
"file-caching"
)
+
700
;
var_SetInteger
(
p_access
,
"file-caching"
,
i_cache
);
msg_Warn
(
p_access
,
"Opening non-local file, use more caching: %d"
,
i_cache
);
}
#endif
p_sys
->
fd
=
fd
;
return
VLC_SUCCESS
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment