Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
dc8a9e59
Commit
dc8a9e59
authored
Feb 17, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VCD: small cosmetics and avoid calling block_New with a negative value
parent
5adde00c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
modules/access/vcd/vcd.c
modules/access/vcd/vcd.c
+4
-7
No files found.
modules/access/vcd/vcd.c
View file @
dc8a9e59
...
@@ -331,7 +331,6 @@ static block_t *Block( access_t *p_access )
...
@@ -331,7 +331,6 @@ static block_t *Block( access_t *p_access )
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
int
i_blocks
=
VCD_BLOCKS_ONCE
;
int
i_blocks
=
VCD_BLOCKS_ONCE
;
block_t
*
p_block
;
block_t
*
p_block
;
int
i_read
;
/* Check end of file */
/* Check end of file */
if
(
p_access
->
info
.
b_eof
)
return
NULL
;
if
(
p_access
->
info
.
b_eof
)
return
NULL
;
...
@@ -349,8 +348,7 @@ static block_t *Block( access_t *p_access )
...
@@ -349,8 +348,7 @@ static block_t *Block( access_t *p_access )
INPUT_UPDATE_TITLE
|
INPUT_UPDATE_SEEKPOINT
|
INPUT_UPDATE_SIZE
;
INPUT_UPDATE_TITLE
|
INPUT_UPDATE_SEEKPOINT
|
INPUT_UPDATE_SIZE
;
p_access
->
info
.
i_title
++
;
p_access
->
info
.
i_title
++
;
p_access
->
info
.
i_seekpoint
=
0
;
p_access
->
info
.
i_seekpoint
=
0
;
p_access
->
info
.
i_size
=
p_access
->
info
.
i_size
=
p_sys
->
title
[
p_access
->
info
.
i_title
]
->
i_size
;
p_sys
->
title
[
p_access
->
info
.
i_title
]
->
i_size
;
p_access
->
info
.
i_pos
=
0
;
p_access
->
info
.
i_pos
=
0
;
}
}
...
@@ -358,12 +356,11 @@ static block_t *Block( access_t *p_access )
...
@@ -358,12 +356,11 @@ static block_t *Block( access_t *p_access )
if
(
p_sys
->
i_sector
+
i_blocks
>=
if
(
p_sys
->
i_sector
+
i_blocks
>=
p_sys
->
p_sectors
[
p_access
->
info
.
i_title
+
2
]
)
p_sys
->
p_sectors
[
p_access
->
info
.
i_title
+
2
]
)
{
{
i_blocks
=
p_sys
->
p_sectors
[
p_access
->
info
.
i_title
+
2
]
-
i_blocks
=
p_sys
->
p_sectors
[
p_access
->
info
.
i_title
+
2
]
-
p_sys
->
i_sector
;
p_sys
->
i_sector
;
}
}
/* Do the actual reading */
/* Do the actual reading */
if
(
!
(
p_block
=
block_New
(
p_access
,
i_blocks
*
VCD_DATA_SIZE
)
)
)
if
(
i_blocks
<
0
||
!
(
p_block
=
block_New
(
p_access
,
i_blocks
*
VCD_DATA_SIZE
)
)
)
{
{
msg_Err
(
p_access
,
"cannot get a new block of size: %i"
,
msg_Err
(
p_access
,
"cannot get a new block of size: %i"
,
i_blocks
*
VCD_DATA_SIZE
);
i_blocks
*
VCD_DATA_SIZE
);
...
@@ -383,7 +380,7 @@ static block_t *Block( access_t *p_access )
...
@@ -383,7 +380,7 @@ static block_t *Block( access_t *p_access )
}
}
/* Update seekpoints */
/* Update seekpoints */
for
(
i_read
=
0
;
i_read
<
i_blocks
;
i_read
++
)
for
(
i
nt
i
_read
=
0
;
i_read
<
i_blocks
;
i_read
++
)
{
{
input_title_t
*
t
=
p_sys
->
title
[
p_access
->
info
.
i_title
];
input_title_t
*
t
=
p_sys
->
title
[
p_access
->
info
.
i_title
];
...
...
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