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
a4a45443
Commit
a4a45443
authored
Aug 25, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/stream: cosmetics
parent
6f83a853
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
src/input/stream.c
src/input/stream.c
+9
-8
No files found.
src/input/stream.c
View file @
a4a45443
...
...
@@ -550,8 +550,6 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
stream_sys_t
*
p_sys
=
s
->
p_sys
;
access_t
*
p_access
=
p_sys
->
p_access
;
uint64_t
*
pi_64
,
i_64
;
static_control_match
(
CAN_SEEK
);
static_control_match
(
CAN_FASTSEEK
);
static_control_match
(
CAN_PAUSE
);
...
...
@@ -578,7 +576,8 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
return
access_vaControl
(
p_access
,
i_query
,
args
);
case
STREAM_GET_SIZE
:
pi_64
=
va_arg
(
args
,
uint64_t
*
);
{
uint64_t
*
pi_64
=
va_arg
(
args
,
uint64_t
*
);
if
(
s
->
p_sys
->
i_list
)
{
int
i
;
...
...
@@ -589,24 +588,26 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
}
*
pi_64
=
access_GetSize
(
p_access
);
break
;
}
case
STREAM_GET_POSITION
:
pi_64
=
va_arg
(
args
,
uint64_t
*
);
*
pi_64
=
p_sys
->
i_pos
;
*
va_arg
(
args
,
uint64_t
*
)
=
p_sys
->
i_pos
;
break
;
case
STREAM_SET_POSITION
:
i_64
=
va_arg
(
args
,
uint64_t
);
{
uint64_t
offset
=
va_arg
(
args
,
uint64_t
);
switch
(
p_sys
->
method
)
{
case
STREAM_METHOD_BLOCK
:
return
AStreamSeekBlock
(
s
,
i_64
);
return
AStreamSeekBlock
(
s
,
offset
);
case
STREAM_METHOD_STREAM
:
return
AStreamSeekStream
(
s
,
i_64
);
return
AStreamSeekStream
(
s
,
offset
);
default:
assert
(
0
);
return
VLC_EGENERIC
;
}
}
case
STREAM_CONTROL_ACCESS
:
{
...
...
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