Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
a4a45443
Commit
a4a45443
authored
Aug 25, 2013
by
Rémi Denis-Courmont
Browse files
input/stream: cosmetics
parent
6f83a853
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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