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
2c1731e7
Commit
2c1731e7
authored
Apr 16, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decomp: pause is unimplemented (although possible), pace works
parent
e4de05b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
modules/stream_filter/decomp.c
modules/stream_filter/decomp.c
+7
-0
No files found.
modules/stream_filter/decomp.c
View file @
2c1731e7
...
...
@@ -76,6 +76,7 @@ struct stream_sys_t
vlc_thread_t
thread
;
pid_t
pid
;
int
write_fd
,
read_fd
;
bool
can_pace
;
};
extern
char
**
environ
;
...
...
@@ -244,8 +245,12 @@ static int Control (stream_t *stream, int query, va_list args)
{
case
STREAM_CAN_SEEK
:
case
STREAM_CAN_FASTSEEK
:
case
STREAM_CAN_PAUSE
:
/* TODO: support pause */
*
(
va_arg
(
args
,
bool
*
))
=
false
;
break
;
case
STREAM_CAN_CONTROL_PACE
:
*
(
va_arg
(
args
,
bool
*
))
=
p_sys
->
can_pace
;
break
;
case
STREAM_GET_POSITION
:
*
(
va_arg
(
args
,
uint64_t
*
))
=
p_sys
->
offset
;
break
;
...
...
@@ -275,6 +280,8 @@ static int Open (stream_t *stream, const char *path)
p_sys
->
peeked
=
NULL
;
p_sys
->
offset
=
0
;
p_sys
->
pid
=
-
1
;
stream_Control
(
stream
->
p_source
,
STREAM_CAN_CONTROL_PACE
,
&
p_sys
->
can_pace
);
/* I am not a big fan of the pyramid style, but I cannot think of anything
* better here. There are too many failure cases. */
...
...
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