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
f11f8a60
Commit
f11f8a60
authored
Jan 11, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvdnav: cosmetic simplification
parent
e778ca64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
16 deletions
+5
-16
modules/access/dvdnav.c
modules/access/dvdnav.c
+5
-16
No files found.
modules/access/dvdnav.c
View file @
f11f8a60
...
...
@@ -1427,7 +1427,6 @@ static int ProbeDVD( demux_t *p_demux, char *psz_name )
#ifdef HAVE_SYS_STAT_H
struct
stat
stat_info
;
uint8_t
pi_anchor
[
2
];
uint16_t
i_tag_id
=
0
;
int
i_fd
,
i_ret
;
if
(
!*
psz_name
)
...
...
@@ -1449,21 +1448,11 @@ static int ProbeDVD( demux_t *p_demux, char *psz_name )
}
/* Try to find the anchor (2 bytes at LBA 256) */
i_ret
=
VLC_SUCCESS
;
if
(
lseek
(
i_fd
,
256
*
DVD_VIDEO_LB_LEN
,
SEEK_SET
)
==
-
1
)
{
i_ret
=
VLC_EGENERIC
;
}
if
(
read
(
i_fd
,
pi_anchor
,
2
)
==
2
)
{
i_tag_id
=
GetWLE
(
pi_anchor
);
if
(
i_tag_id
!=
2
)
i_ret
=
VLC_EGENERIC
;
/* Not an anchor */
}
else
{
i_ret
=
VLC_EGENERIC
;
}
i_ret
=
VLC_EGENERIC
;
if
(
lseek
(
i_fd
,
256
*
DVD_VIDEO_LB_LEN
,
SEEK_SET
)
!=
-
1
&&
read
(
i_fd
,
pi_anchor
,
2
)
==
2
&&
GetWLE
(
pi_anchor
)
==
2
)
i_ret
=
VLC_SUCCESS
;
/* Found a potential anchor */
close
(
i_fd
);
...
...
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