Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
613d29c6
Commit
613d29c6
authored
Mar 14, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/access/file.c: more fixes ( thanks fenrir :) ).
parent
ff451709
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
modules/access/file.c
modules/access/file.c
+8
-6
No files found.
modules/access/file.c
View file @
613d29c6
...
@@ -461,21 +461,22 @@ static ssize_t Read( input_thread_t * p_input, byte_t * p_buffer, size_t i_len )
...
@@ -461,21 +461,22 @@ static ssize_t Read( input_thread_t * p_input, byte_t * p_buffer, size_t i_len )
#endif
#endif
/* If we reached an EOF then switch to the next file in the list */
/* If we reached an EOF then switch to the next file in the list */
if
(
i_ret
==
0
&&
++
p_access_data
->
i_index
<
p_access_data
->
i_files
)
if
(
i_ret
==
0
&&
p_access_data
->
i_index
+
1
<
p_access_data
->
i_files
)
{
{
int
i_handle
=
p_access_data
->
_socket
.
i_handle
;
int
i_handle
=
p_access_data
->
_socket
.
i_handle
;
char
*
psz_name
=
char
*
psz_name
=
p_access_data
->
p_files
[
p_access_data
->
i_index
]
->
psz_name
;
p_access_data
->
p_files
[
p_access_data
->
i_index
+
1
]
->
psz_name
;
msg_Dbg
(
p_input
,
"opening file `%s'"
,
psz_name
);
msg_Dbg
(
p_input
,
"opening file `%s'"
,
psz_name
);
if
(
_OpenFile
(
p_input
,
psz_name
)
!=
VLC_SUCCESS
)
if
(
_OpenFile
(
p_input
,
psz_name
)
!=
VLC_SUCCESS
)
{
{
p_access_data
->
i_index
--
;
p_access_data
->
_socket
.
i_handle
=
i_handle
;
return
0
;
return
0
;
}
}
close
(
i_handle
);
close
(
i_handle
);
p_access_data
->
i_index
++
;
/* We have to read some data */
/* We have to read some data */
return
Read
(
p_input
,
p_buffer
,
i_len
);
return
Read
(
p_input
,
p_buffer
,
i_len
);
...
@@ -501,14 +502,15 @@ static void Seek( input_thread_t * p_input, off_t i_pos )
...
@@ -501,14 +502,15 @@ static void Seek( input_thread_t * p_input, off_t i_pos )
for
(
i
=
0
;
i
<
p_access_data
->
i_files
-
1
;
i
++
)
for
(
i
=
0
;
i
<
p_access_data
->
i_files
-
1
;
i
++
)
{
{
if
(
i_pos
<
p_access_data
->
p_files
[
i
+
1
]
->
i_size
+
i_size
)
break
;
if
(
i_pos
<
p_access_data
->
p_files
[
i
]
->
i_size
+
i_size
)
break
;
i_size
+=
p_access_data
->
p_files
[
i
+
1
]
->
i_size
;
i_size
+=
p_access_data
->
p_files
[
i
]
->
i_size
;
}
}
psz_name
=
p_access_data
->
p_files
[
i
]
->
psz_name
;
psz_name
=
p_access_data
->
p_files
[
i
]
->
psz_name
;
msg_Dbg
(
p_input
,
"opening file `%s'"
,
psz_name
);
msg_Dbg
(
p_input
,
"opening file `%s'"
,
psz_name
);
if
(
_OpenFile
(
p_input
,
psz_name
)
==
VLC_SUCCESS
)
if
(
i
!=
p_access_data
->
i_index
&&
_OpenFile
(
p_input
,
psz_name
)
==
VLC_SUCCESS
)
{
{
/* Close old file */
/* Close old file */
close
(
i_handle
);
close
(
i_handle
);
...
...
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