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
d9b00181
Commit
d9b00181
authored
Oct 22, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics (vout).
parent
cfe5b8d5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
21 deletions
+21
-21
src/video_output/display.c
src/video_output/display.c
+3
-3
src/video_output/video_output.c
src/video_output/video_output.c
+17
-17
src/video_output/vout_internal.h
src/video_output/vout_internal.h
+1
-1
No files found.
src/video_output/display.c
View file @
d9b00181
...
...
@@ -1563,8 +1563,8 @@ void vout_SendDisplayEventMouse(vout_thread_t *vout, const vlc_mouse_t *m)
{
vlc_mouse_t
tmp1
,
tmp2
;
/* The check on
p_
spu is needed as long as ALLOW_DUMMY_VOUT is defined */
if
(
vout
->
p
->
p_spu
&&
spu_ProcessMouse
(
vout
->
p
->
p_
spu
,
m
,
&
vout
->
p
->
display
.
vd
->
source
))
/* The check on spu is needed as long as ALLOW_DUMMY_VOUT is defined */
if
(
vout
->
p
->
spu
&&
spu_ProcessMouse
(
vout
->
p
->
spu
,
m
,
&
vout
->
p
->
display
.
vd
->
source
))
return
;
vlc_mutex_lock
(
&
vout
->
p
->
filter
.
lock
);
...
...
@@ -1610,7 +1610,7 @@ static void DummyVoutSendDisplayEventMouse(vout_thread_t *vout, vlc_mouse_t *fal
vlc_mutex_init
(
&
p
.
filter
.
lock
);
p
.
filter
.
chain_static
=
NULL
;
p
.
filter
.
chain_interactive
=
NULL
;
p
.
p_
spu
=
NULL
;
p
.
spu
=
NULL
;
vout
->
p
=
&
p
;
}
vout_SendDisplayEventMouse
(
vout
,
m
);
...
...
src/video_output/video_output.c
View file @
d9b00181
...
...
@@ -131,7 +131,7 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
vlc_object_attach
(
vout
,
object
);
/* Initialize subpicture unit */
vout
->
p
->
p_
spu
=
spu_Create
(
vout
);
vout
->
p
->
spu
=
spu_Create
(
vout
);
/* Take care of some "interface/control" related initialisations */
vout_IntfInit
(
vout
);
...
...
@@ -159,7 +159,7 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
/* */
if
(
vlc_clone
(
&
vout
->
p
->
thread
,
Thread
,
vout
,
VLC_THREAD_PRIORITY_OUTPUT
))
{
spu_Destroy
(
vout
->
p
->
p_
spu
);
spu_Destroy
(
vout
->
p
->
spu
);
vlc_object_release
(
vout
);
return
NULL
;
}
...
...
@@ -174,7 +174,7 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
vout
->
p
->
input
=
cfg
->
input
;
if
(
vout
->
p
->
input
)
spu_Attach
(
vout
->
p
->
p_
spu
,
vout
->
p
->
input
,
true
);
spu_Attach
(
vout
->
p
->
spu
,
vout
->
p
->
input
,
true
);
return
vout
;
}
...
...
@@ -193,10 +193,10 @@ vout_thread_t *(vout_Request)(vlc_object_t *object,
if
(
vout
)
{
if
(
vout
->
p
->
input
!=
cfg
->
input
)
{
if
(
vout
->
p
->
input
)
spu_Attach
(
vout
->
p
->
p_
spu
,
vout
->
p
->
input
,
false
);
spu_Attach
(
vout
->
p
->
spu
,
vout
->
p
->
input
,
false
);
vout
->
p
->
input
=
cfg
->
input
;
if
(
vout
->
p
->
input
)
spu_Attach
(
vout
->
p
->
p_
spu
,
vout
->
p
->
input
,
true
);
spu_Attach
(
vout
->
p
->
spu
,
vout
->
p
->
input
,
true
);
}
if
(
cfg
->
change_fmt
)
{
...
...
@@ -224,7 +224,7 @@ void vout_Close(vout_thread_t *vout)
assert
(
vout
);
if
(
vout
->
p
->
input
)
spu_Attach
(
vout
->
p
->
p_
spu
,
vout
->
p
->
input
,
false
);
spu_Attach
(
vout
->
p
->
spu
,
vout
->
p
->
input
,
false
);
vout_snapshot_End
(
&
vout
->
p
->
snapshot
);
...
...
@@ -232,8 +232,8 @@ void vout_Close(vout_thread_t *vout)
vlc_join
(
vout
->
p
->
thread
,
NULL
);
vlc_mutex_lock
(
&
vout
->
p
->
spu_lock
);
spu_Destroy
(
vout
->
p
->
p_
spu
);
vout
->
p
->
p_
spu
=
NULL
;
spu_Destroy
(
vout
->
p
->
spu
);
vout
->
p
->
spu
=
NULL
;
vlc_mutex_unlock
(
&
vout
->
p
->
spu_lock
);
}
...
...
@@ -359,8 +359,8 @@ int vout_RegisterSubpictureChannel( vout_thread_t *vout )
int
channel
=
SPU_DEFAULT_CHANNEL
;
vlc_mutex_lock
(
&
vout
->
p
->
spu_lock
);
if
(
vout
->
p
->
p_
spu
)
channel
=
spu_RegisterChannel
(
vout
->
p
->
p_
spu
);
if
(
vout
->
p
->
spu
)
channel
=
spu_RegisterChannel
(
vout
->
p
->
spu
);
vlc_mutex_unlock
(
&
vout
->
p
->
spu_lock
);
return
channel
;
...
...
@@ -765,7 +765,7 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
else
spu_render_time
=
filtered
->
date
>
1
?
filtered
->
date
:
mdate
();
subpicture_t
*
subpic
=
spu_SortSubpictures
(
vout
->
p
->
p_
spu
,
subpicture_t
*
subpic
=
spu_SortSubpictures
(
vout
->
p
->
spu
,
spu_render_time
,
do_snapshot
);
/*
...
...
@@ -789,7 +789,7 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
if
(
render
)
{
picture_Copy
(
render
,
filtered
);
spu_RenderSubpictures
(
vout
->
p
->
p_
spu
,
spu_RenderSubpictures
(
vout
->
p
->
spu
,
render
,
&
vd
->
source
,
subpic
,
&
vd
->
source
,
spu_render_time
);
}
...
...
@@ -944,12 +944,12 @@ static void ThreadManage(vout_thread_t *vout,
static
void
ThreadDisplaySubpicture
(
vout_thread_t
*
vout
,
subpicture_t
*
subpicture
)
{
spu_DisplaySubpicture
(
vout
->
p
->
p_
spu
,
subpicture
);
spu_DisplaySubpicture
(
vout
->
p
->
spu
,
subpicture
);
}
static
void
ThreadFlushSubpicture
(
vout_thread_t
*
vout
,
int
channel
)
{
spu_ClearChannel
(
vout
->
p
->
p_
spu
,
channel
);
spu_ClearChannel
(
vout
->
p
->
spu
,
channel
);
}
static
void
ThreadDisplayOsdTitle
(
vout_thread_t
*
vout
,
const
char
*
string
)
...
...
@@ -1050,11 +1050,11 @@ static void ThreadChangeFilters(vout_thread_t *vout, const char *filters)
static
void
ThreadChangeSubFilters
(
vout_thread_t
*
vout
,
const
char
*
filters
)
{
spu_ChangeFilters
(
vout
->
p
->
p_
spu
,
filters
);
spu_ChangeFilters
(
vout
->
p
->
spu
,
filters
);
}
static
void
ThreadChangeSubMargin
(
vout_thread_t
*
vout
,
int
margin
)
{
spu_ChangeMargin
(
vout
->
p
->
p_
spu
,
margin
);
spu_ChangeMargin
(
vout
->
p
->
spu
,
margin
);
}
static
void
ThreadChangePause
(
vout_thread_t
*
vout
,
bool
is_paused
,
mtime_t
date
)
...
...
@@ -1071,7 +1071,7 @@ static void ThreadChangePause(vout_thread_t *vout, bool is_paused, mtime_t date)
picture_fifo_OffsetDate
(
vout
->
p
->
decoder_fifo
,
duration
);
if
(
vout
->
p
->
displayed
.
decoded
)
vout
->
p
->
displayed
.
decoded
->
date
+=
duration
;
spu_OffsetSubtitleDate
(
vout
->
p
->
p_
spu
,
duration
);
spu_OffsetSubtitleDate
(
vout
->
p
->
spu
,
duration
);
ThreadFilterFlush
(
vout
);
}
else
{
...
...
src/video_output/vout_internal.h
View file @
d9b00181
...
...
@@ -69,7 +69,7 @@ struct vout_thread_sys_t
/* Subpicture unit */
vlc_mutex_t
spu_lock
;
spu_t
*
p_
spu
;
spu_t
*
spu
;
/* Video output window */
struct
{
...
...
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