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
bdeea764
Commit
bdeea764
authored
Jan 28, 2002
by
Stéphane Borel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.Fixed a segfault a dvdread exit (my fault).
parent
c36cfc38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
extras/libdvdread/dvd_reader.c
extras/libdvdread/dvd_reader.c
+5
-4
No files found.
extras/libdvdread/dvd_reader.c
View file @
bdeea764
...
...
@@ -340,7 +340,8 @@ static dvd_file_t *DVDOpenFileUDF( dvd_reader_t *dvd, char *filename )
dvd_file
->
dvd
=
dvd
;
dvd_file
->
lb_start
=
start
;
dvd_file
->
seek_pos
=
0
;
//memset( dvd_file->title_devs, -1, sizeof( dvd_file->title_devs ) );
memset
(
dvd_file
->
title_sizes
,
0
,
sizeof
(
dvd_file
->
title_sizes
)
);
memset
(
dvd_file
->
title_devs
,
0
,
sizeof
(
dvd_file
->
title_devs
)
);
dvd_file
->
filesize
=
len
/
DVD_VIDEO_LB_LEN
;
return
dvd_file
;
...
...
@@ -425,7 +426,7 @@ static dvd_file_t *DVDOpenFilePath( dvd_reader_t *dvd, char *filename )
dvd_file
->
lb_start
=
0
;
dvd_file
->
seek_pos
=
0
;
memset
(
dvd_file
->
title_sizes
,
0
,
sizeof
(
dvd_file
->
title_sizes
)
);
memset
(
dvd_file
->
title_devs
,
-
1
,
sizeof
(
dvd_file
->
title_devs
)
);
memset
(
dvd_file
->
title_devs
,
0
,
sizeof
(
dvd_file
->
title_devs
)
);
dvd_file
->
filesize
=
0
;
if
(
stat
(
full_path
,
&
fileinfo
)
<
0
)
{
...
...
@@ -460,7 +461,7 @@ static dvd_file_t *DVDOpenVOBUDF( dvd_reader_t *dvd, int title, int menu )
dvd_file
->
lb_start
=
start
;
dvd_file
->
seek_pos
=
0
;
memset
(
dvd_file
->
title_sizes
,
0
,
sizeof
(
dvd_file
->
title_sizes
)
);
memset
(
dvd_file
->
title_devs
,
-
1
,
sizeof
(
dvd_file
->
title_devs
)
);
memset
(
dvd_file
->
title_devs
,
0
,
sizeof
(
dvd_file
->
title_devs
)
);
dvd_file
->
filesize
=
len
/
DVD_VIDEO_LB_LEN
;
/* Calculate the complete file size for every file in the VOBS */
...
...
@@ -496,7 +497,7 @@ static dvd_file_t *DVDOpenVOBPath( dvd_reader_t *dvd, int title, int menu )
dvd_file
->
lb_start
=
0
;
dvd_file
->
seek_pos
=
0
;
memset
(
dvd_file
->
title_sizes
,
0
,
sizeof
(
dvd_file
->
title_sizes
)
);
memset
(
dvd_file
->
title_devs
,
-
1
,
sizeof
(
dvd_file
->
title_devs
)
);
memset
(
dvd_file
->
title_devs
,
0
,
sizeof
(
dvd_file
->
title_devs
)
);
dvd_file
->
filesize
=
0
;
if
(
menu
)
{
...
...
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