Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
a4666527
Commit
a4666527
authored
Nov 27, 2004
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mem_stream.c: minor cleanup + shut up compiler warnings
parent
fd195152
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
src/input/mem_stream.c
src/input/mem_stream.c
+2
-9
No files found.
src/input/mem_stream.c
View file @
a4666527
...
...
@@ -37,7 +37,6 @@ struct stream_sys_t
static
int
AStreamReadMem
(
stream_t
*
,
void
*
p_read
,
int
i_read
);
static
int
AStreamPeekMem
(
stream_t
*
,
uint8_t
**
pp_peek
,
int
i_read
);
static
int
AStreamSeekMem
(
stream_t
*
s
,
int64_t
i_pos
);
static
int
AStreamControl
(
stream_t
*
,
int
i_query
,
va_list
);
/****************************************************************************
...
...
@@ -110,6 +109,8 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
case
STREAM_SET_POSITION
:
i_64
=
(
int64_t
)
va_arg
(
args
,
int64_t
);
i_64
=
__MAX
(
i_64
,
0
);
i_64
=
__MIN
(
i_64
,
s
->
p_sys
->
i_size
);
p_sys
->
i_pos
=
i_64
;
case
STREAM_GET_MTU
:
...
...
@@ -144,11 +145,3 @@ static int AStreamPeekMem( stream_t *s, uint8_t **pp_peek, int i_read )
*
pp_peek
=
p_sys
->
p_buffer
+
p_sys
->
i_pos
;
return
i_res
;
}
static
int
AStreamSeekMem
(
stream_t
*
s
,
int64_t
i_pos
)
{
int64_t
i_new_pos
;
i_new_pos
=
__MAX
(
i_pos
,
0
);
i_new_pos
=
__MIN
(
i_new_pos
,
s
->
p_sys
->
i_size
);
s
->
p_sys
->
i_pos
=
i_new_pos
;
}
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