Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
55d25614
Commit
55d25614
authored
Jul 07, 2004
by
Laurent Aimar
Browse files
* demux: stream_DemuxControl: emulate seek.
parent
25fc0180
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/input/demux.c
View file @
55d25614
...
...
@@ -456,7 +456,24 @@ static int DStreamControl( stream_t *s, int i_query, va_list args )
return
VLC_SUCCESS
;
case
STREAM_SET_POSITION
:
return
VLC_EGENERIC
;
{
int64_t
i64
=
(
int64_t
)
va_arg
(
args
,
int64_t
);
int
i_skip
;
if
(
i64
<
p_sys
->
i_pos
)
return
VLC_EGENERIC
;
i_skip
=
i64
-
p_sys
->
i_pos
;
while
(
i_skip
>
0
)
{
int
i_read
=
DStreamRead
(
s
,
NULL
,
i_skip
);
if
(
i_read
<=
0
)
return
VLC_EGENERIC
;
i_skip
-=
i_read
;
}
return
VLC_SUCCESS
;
}
case
STREAM_GET_MTU
:
p_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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