Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vlc
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GSoC
GSoC2017
dbtdsilva
vlc
Commits
38ed2e8e
Commit
38ed2e8e
authored
14 years ago
by
Laurent Aimar
Browse files
Options
Downloads
Patches
Plain Diff
Used vout_control_Push for vout_RegisterSubpictureChannel.
parent
68e3372b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/video_output/control.h
+2
-0
2 additions, 0 deletions
src/video_output/control.h
src/video_output/video_output.c
+18
-1
18 additions, 1 deletion
src/video_output/video_output.c
with
20 additions
and
1 deletion
src/video_output/control.h
+
2
−
0
View file @
38ed2e8e
...
...
@@ -41,6 +41,7 @@ enum {
#endif
VOUT_CONTROL_SUBPICTURE
,
/* subpicture */
VOUT_CONTROL_FLUSH_SUBPICTURE
,
/* integer */
VOUT_CONTROL_REGISTER_SUBPICTURE
,
/* integer_ptr */
VOUT_CONTROL_OSD_TITLE
,
/* string */
VOUT_CONTROL_CHANGE_FILTERS
,
/* string */
VOUT_CONTROL_CHANGE_SUB_FILTERS
,
/* string */
...
...
@@ -70,6 +71,7 @@ typedef struct {
mtime_t
*
time_ptr
;
char
*
string
;
int
integer
;
int
*
integer_ptr
;
struct
{
int
a
;
int
b
;
...
...
This diff is collapsed.
Click to expand it.
src/video_output/video_output.c
+
18
−
1
View file @
38ed2e8e
...
...
@@ -357,7 +357,16 @@ void vout_PutSubpicture( vout_thread_t *vout, subpicture_t *subpic )
}
int
vout_RegisterSubpictureChannel
(
vout_thread_t
*
vout
)
{
return
spu_RegisterChannel
(
vout
->
p
->
p_spu
);
int
channel
=
SPU_DEFAULT_CHANNEL
;
vout_control_cmd_t
cmd
;
vout_control_cmd_Init
(
&
cmd
,
VOUT_CONTROL_REGISTER_SUBPICTURE
);
cmd
.
u
.
integer_ptr
=
&
channel
;
vout_control_Push
(
&
vout
->
p
->
control
,
&
cmd
);
vout_control_WaitEmpty
(
&
vout
->
p
->
control
);
return
channel
;
}
void
vout_FlushSubpictureChannel
(
vout_thread_t
*
vout
,
int
channel
)
{
...
...
@@ -760,6 +769,11 @@ static void ThreadDisplaySubpicture(vout_thread_t *vout,
spu_DisplaySubpicture
(
vout
->
p
->
p_spu
,
subpicture
);
}
static
void
ThreadRegisterSubpicture
(
vout_thread_t
*
vout
,
int
*
channel
)
{
*
channel
=
spu_RegisterChannel
(
vout
->
p
->
p_spu
);
}
static
void
ThreadFlushSubpicture
(
vout_thread_t
*
vout
,
int
channel
)
{
spu_ClearChannel
(
vout
->
p
->
p_spu
,
channel
);
...
...
@@ -1123,6 +1137,9 @@ static void *Thread(void *object)
case
VOUT_CONTROL_FLUSH_SUBPICTURE
:
ThreadFlushSubpicture
(
vout
,
cmd
.
u
.
integer
);
break
;
case
VOUT_CONTROL_REGISTER_SUBPICTURE
:
ThreadRegisterSubpicture
(
vout
,
cmd
.
u
.
integer_ptr
);
break
;
case
VOUT_CONTROL_OSD_TITLE
:
ThreadDisplayOsdTitle
(
vout
,
cmd
.
u
.
string
);
break
;
...
...
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