Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
55d25614
Commit
55d25614
authored
Jul 07, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* demux: stream_DemuxControl: emulate seek.
parent
25fc0180
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
src/input/demux.c
src/input/demux.c
+18
-1
No files found.
src/input/demux.c
View file @
55d25614
...
...
@@ -456,8 +456,25 @@ static int DStreamControl( stream_t *s, int i_query, va_list args )
return
VLC_SUCCESS
;
case
STREAM_SET_POSITION
:
{
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
*
);
*
p_int
=
0
;
...
...
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