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
ae301440
Commit
ae301440
authored
Nov 10, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decomp: provide PTS delay
parent
3c218321
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
modules/stream_filter/decomp.c
modules/stream_filter/decomp.c
+5
-0
No files found.
modules/stream_filter/decomp.c
View file @
ae301440
...
@@ -89,6 +89,7 @@ struct stream_sys_t
...
@@ -89,6 +89,7 @@ struct stream_sys_t
int
read_fd
;
int
read_fd
;
bool
can_pace
;
bool
can_pace
;
bool
can_pause
;
bool
can_pause
;
int64_t
pts_delay
;
};
};
extern
char
**
environ
;
extern
char
**
environ
;
...
@@ -275,6 +276,9 @@ static int Control (stream_t *stream, int query, va_list args)
...
@@ -275,6 +276,9 @@ static int Control (stream_t *stream, int query, va_list args)
case
STREAM_GET_SIZE
:
case
STREAM_GET_SIZE
:
*
(
va_arg
(
args
,
uint64_t
*
))
=
0
;
*
(
va_arg
(
args
,
uint64_t
*
))
=
0
;
break
;
break
;
case
STREAM_GET_PTS_DELAY
:
*
va_arg
(
args
,
int64_t
*
)
=
p_sys
->
pts_delay
;
break
;
case
STREAM_SET_PAUSE_STATE
:
case
STREAM_SET_PAUSE_STATE
:
{
{
bool
paused
=
va_arg
(
args
,
unsigned
);
bool
paused
=
va_arg
(
args
,
unsigned
);
...
@@ -316,6 +320,7 @@ static int Open (stream_t *stream, const char *path)
...
@@ -316,6 +320,7 @@ static int Open (stream_t *stream, const char *path)
stream_Control
(
stream
->
p_source
,
STREAM_CAN_PAUSE
,
&
p_sys
->
can_pause
);
stream_Control
(
stream
->
p_source
,
STREAM_CAN_PAUSE
,
&
p_sys
->
can_pause
);
stream_Control
(
stream
->
p_source
,
STREAM_CAN_CONTROL_PACE
,
stream_Control
(
stream
->
p_source
,
STREAM_CAN_CONTROL_PACE
,
&
p_sys
->
can_pace
);
&
p_sys
->
can_pace
);
stream_Control
(
stream
->
p_source
,
STREAM_GET_PTS_DELAY
,
&
p_sys
->
pts_delay
);
/* I am not a big fan of the pyramid style, but I cannot think of anything
/* I am not a big fan of the pyramid style, but I cannot think of anything
* better here. There are too many failure cases. */
* 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