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
2a6adf74
Commit
2a6adf74
authored
Jul 23, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
file: network file extra caching for Win32
Fixes #2983 for good ths time hopefully...
parent
7dee04f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
configure.ac
configure.ac
+1
-0
modules/access/file.c
modules/access/file.c
+12
-0
No files found.
configure.ac
View file @
2a6adf74
...
@@ -354,6 +354,7 @@ case "${host_os}" in
...
@@ -354,6 +354,7 @@ case "${host_os}" in
VLC_ADD_LIBS([activex mozilla],[-lgdi32])
VLC_ADD_LIBS([activex mozilla],[-lgdi32])
VLC_ADD_LIBS([cdda vcdx cddax sdl_image],[-lwinmm])
VLC_ADD_LIBS([cdda vcdx cddax sdl_image],[-lwinmm])
VLC_ADD_LIBS([access_http access_mms access_udp access_tcp access_ftp access_rtmp access_output_udp access_output_shout access_output_rtmp sap slp http stream_out_standard stream_out_rtp stream_out_raop vod_rtsp access_realrtsp rtp telnet rc netsync gnutls growl_udp flac ts audioscrobbler lua remoteosd],[-lws2_32])
VLC_ADD_LIBS([access_http access_mms access_udp access_tcp access_ftp access_rtmp access_output_udp access_output_shout access_output_rtmp sap slp http stream_out_standard stream_out_rtp stream_out_raop vod_rtsp access_realrtsp rtp telnet rc netsync gnutls growl_udp flac ts audioscrobbler lua remoteosd],[-lws2_32])
VLC_ADD_LIBS([access_file], [-lshlwapi])
fi
fi
if test "${SYS}" = "mingwce"; then
if test "${SYS}" = "mingwce"; then
# add ws2 for closesocket, select, recv
# add ws2 for closesocket, select, recv
...
...
modules/access/file.c
View file @
2a6adf74
...
@@ -59,6 +59,7 @@
...
@@ -59,6 +59,7 @@
#if defined( WIN32 )
#if defined( WIN32 )
# include <io.h>
# include <io.h>
# include <ctype.h>
# include <ctype.h>
# include <shlwapi.h>
#else
#else
# include <unistd.h>
# include <unistd.h>
# include <poll.h>
# include <poll.h>
...
@@ -171,6 +172,10 @@ static int Open( vlc_object_t *p_this )
...
@@ -171,6 +172,10 @@ static int Open( vlc_object_t *p_this )
{
{
access_t
*
p_access
=
(
access_t
*
)
p_this
;
access_t
*
p_access
=
(
access_t
*
)
p_this
;
access_sys_t
*
p_sys
;
access_sys_t
*
p_sys
;
#ifdef WIN32
wchar_t
wpath
[
MAX_PATH
+
1
];
bool
is_remote
=
false
;
#endif
STANDARD_READ_ACCESS_INIT
;
STANDARD_READ_ACCESS_INIT
;
p_sys
->
i_nb_reads
=
0
;
p_sys
->
i_nb_reads
=
0
;
...
@@ -187,6 +192,13 @@ static int Open( vlc_object_t *p_this )
...
@@ -187,6 +192,13 @@ static int Open( vlc_object_t *p_this )
{
{
msg_Dbg
(
p_access
,
"opening file `%s'"
,
p_access
->
psz_path
);
msg_Dbg
(
p_access
,
"opening file `%s'"
,
p_access
->
psz_path
);
fd
=
open_file
(
p_access
,
p_access
->
psz_path
);
fd
=
open_file
(
p_access
,
p_access
->
psz_path
);
#ifdef WIN32
if
(
MultiByteToWideChar
(
CP_UTF8
,
0
,
p_access
->
psz_path
,
-
1
,
wpath
,
MAX_PATH
)
&&
PathIsNetworkPathW
(
wpath
))
is_remote
=
true
;
# define IsRemote( fd ) ((void)fd, is_remote)
#endif
}
}
if
(
fd
==
-
1
)
if
(
fd
==
-
1
)
goto
error
;
goto
error
;
...
...
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