Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
4f34578d
Commit
4f34578d
authored
Jan 11, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvdnav: trivially avoid duplicate file path lookup
parent
f11f8a60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
modules/access/dvdnav.c
modules/access/dvdnav.c
+5
-6
No files found.
modules/access/dvdnav.c
View file @
4f34578d
...
...
@@ -1435,16 +1435,15 @@ static int ProbeDVD( demux_t *p_demux, char *psz_name )
return
VLC_SUCCESS
;
}
if
(
stat
(
psz_name
,
&
stat_info
)
||
!
S_ISREG
(
stat_info
.
st_mode
)
)
if
(
(
i_fd
=
open
(
psz_name
,
O_RDONLY
))
==
-
1
)
{
/* Let dvdnav_open() do the probing */
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
/* Let dvdnav_open() do the probing */
}
if
(
(
i_fd
=
open
(
psz_name
,
O_RDONLY
))
==
-
1
)
if
(
fstat
(
i_fd
,
&
stat_info
)
||
!
S_ISREG
(
stat_info
.
st_mode
)
)
{
/* Let dvdnav_open() do the probing */
return
VLC_SUCCESS
;
close
(
i_fd
);
return
VLC_SUCCESS
;
/* Let dvdnav_open() do the probing */
}
/* Try to find the anchor (2 bytes at LBA 256) */
...
...
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