Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
448
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
b405dc1e
Commit
b405dc1e
authored
3 years ago
by
Alaric Senat
Committed by
Rémi Denis-Courmont
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
sout: add SetPCR API wrapper
parent
240cf3ca
No related branches found
Branches containing commit
No related tags found
1 merge request
!1394
sout: implement a SetPCR callback in stream output
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/vlc_sout.h
+1
-0
1 addition, 0 deletions
include/vlc_sout.h
src/libvlccore.sym
+1
-0
1 addition, 0 deletions
src/libvlccore.sym
src/stream_output/stream_output.c
+10
-0
10 additions, 0 deletions
src/stream_output/stream_output.c
with
12 additions
and
0 deletions
include/vlc_sout.h
+
1
−
0
View file @
b405dc1e
...
...
@@ -201,6 +201,7 @@ VLC_API void *sout_StreamIdAdd(sout_stream_t *s, const es_format_t *fmt);
VLC_API
void
sout_StreamIdDel
(
sout_stream_t
*
s
,
void
*
id
);
VLC_API
int
sout_StreamIdSend
(
sout_stream_t
*
s
,
void
*
id
,
block_t
*
b
);
VLC_API
void
sout_StreamFlush
(
sout_stream_t
*
s
,
void
*
id
);
VLC_API
void
sout_StreamSetPCR
(
sout_stream_t
*
s
,
vlc_tick_t
pcr
);
VLC_API
int
sout_StreamControlVa
(
sout_stream_t
*
s
,
int
i_query
,
va_list
args
);
static
inline
int
sout_StreamControl
(
sout_stream_t
*
s
,
int
i_query
,
...
)
...
...
This diff is collapsed.
Click to expand it.
src/libvlccore.sym
+
1
−
0
View file @
b405dc1e
...
...
@@ -356,6 +356,7 @@ sout_StreamIdAdd
sout_StreamIdDel
sout_StreamIdSend
sout_StreamFlush
sout_StreamSetPCR
sout_StreamControlVa
spu_Create
spu_Destroy
...
...
This diff is collapsed.
Click to expand it.
src/stream_output/stream_output.c
+
10
−
0
View file @
b405dc1e
...
...
@@ -728,6 +728,16 @@ void sout_StreamFlush(sout_stream_t *s, void *id)
}
}
void
sout_StreamSetPCR
(
sout_stream_t
*
s
,
vlc_tick_t
pcr
)
{
if
(
s
->
ops
->
set_pcr
!=
NULL
)
{
sout_StreamLock
(
s
);
s
->
ops
->
set_pcr
(
s
,
pcr
);
sout_StreamUnlock
(
s
);
}
}
int
sout_StreamControlVa
(
sout_stream_t
*
s
,
int
i_query
,
va_list
args
)
{
int
val
=
VLC_EGENERIC
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment