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
a3988310
Commit
a3988310
authored
May 10, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics (vout).
parent
b874f1bf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
src/video_output/display.c
src/video_output/display.c
+3
-3
src/video_output/video_output.c
src/video_output/video_output.c
+7
-6
src/video_output/vout_internal.h
src/video_output/vout_internal.h
+1
-1
No files found.
src/video_output/display.c
View file @
a3988310
...
...
@@ -1414,8 +1414,8 @@ void vout_SendDisplayEventMouse(vout_thread_t *vout, const vlc_mouse_t *m)
return
;
vlc_mutex_lock
(
&
vout
->
p
->
vfilter_lock
);
if
(
vout
->
p
->
p_vf2
_chain
)
{
if
(
!
filter_chain_MouseFilter
(
vout
->
p
->
p_vf2
_chain
,
&
tmp
,
m
))
if
(
vout
->
p
->
vfilter
_chain
)
{
if
(
!
filter_chain_MouseFilter
(
vout
->
p
->
vfilter
_chain
,
&
tmp
,
m
))
m
=
&
tmp
;
}
vlc_mutex_unlock
(
&
vout
->
p
->
vfilter_lock
);
...
...
@@ -1452,7 +1452,7 @@ static void DummyVoutSendDisplayEventMouse(vout_thread_t *vout, vlc_mouse_t *fal
if
(
!
vout
->
p
)
{
p
.
mouse
=
*
fallback
;
vlc_mutex_init
(
&
p
.
vfilter_lock
);
p
.
p_vf2
_chain
=
NULL
;
p
.
vfilter
_chain
=
NULL
;
p
.
p_spu
=
NULL
;
vout
->
p
=
&
p
;
}
...
...
src/video_output/video_output.c
View file @
a3988310
...
...
@@ -245,8 +245,9 @@ vout_thread_t * (vout_Create)( vlc_object_t *p_parent, video_format_t *p_fmt )
vout_snapshot_Init
(
&
p_vout
->
p
->
snapshot
);
p_vout
->
p
->
p_vf2_chain
=
filter_chain_New
(
p_vout
,
"video filter2"
,
false
,
video_filter_buffer_allocation_init
,
NULL
,
p_vout
);
p_vout
->
p
->
vfilter_chain
=
filter_chain_New
(
p_vout
,
"video filter2"
,
false
,
video_filter_buffer_allocation_init
,
NULL
,
p_vout
);
/* Initialize locks */
vlc_mutex_init
(
&
p_vout
->
p
->
picture_lock
);
...
...
@@ -680,7 +681,7 @@ static int ThreadDisplayPicture(vout_thread_t *vout,
picture_t
*
filtered
=
NULL
;
if
(
decoded
)
{
vlc_mutex_lock
(
&
vout
->
p
->
vfilter_lock
);
filtered
=
filter_chain_VideoFilter
(
vout
->
p
->
p_vf2
_chain
,
decoded
);
filtered
=
filter_chain_VideoFilter
(
vout
->
p
->
vfilter
_chain
,
decoded
);
//assert(filtered == decoded); // TODO implement
vlc_mutex_unlock
(
&
vout
->
p
->
vfilter_lock
);
if
(
!
filtered
)
...
...
@@ -831,8 +832,8 @@ static void ThreadChangeFilters(vout_thread_t *vout, const char *filters)
vlc_mutex_lock
(
&
vout
->
p
->
vfilter_lock
);
filter_chain_Reset
(
vout
->
p
->
p_vf2
_chain
,
&
fmt
,
&
fmt
);
if
(
filter_chain_AppendFromString
(
vout
->
p
->
p_vf2
_chain
,
filter_chain_Reset
(
vout
->
p
->
vfilter
_chain
,
&
fmt
,
&
fmt
);
if
(
filter_chain_AppendFromString
(
vout
->
p
->
vfilter
_chain
,
filters
)
<
0
)
msg_Err
(
vout
,
"Video filter chain creation failed"
);
...
...
@@ -1168,7 +1169,7 @@ exit_thread:
vout_control_Dead
(
&
vout
->
p
->
control
);
/* Destroy the video filters2 */
filter_chain_Delete
(
vout
->
p
->
p_vf2
_chain
);
filter_chain_Delete
(
vout
->
p
->
vfilter
_chain
);
return
NULL
;
}
...
...
src/video_output/vout_internal.h
View file @
a3988310
...
...
@@ -105,7 +105,7 @@ struct vout_thread_sys_t
/* Video filter2 chain */
vlc_mutex_t
vfilter_lock
;
filter_chain_t
*
p_vf2
_chain
;
filter_chain_t
*
vfilter
_chain
;
/* Snapshot interface */
vout_snapshot_t
snapshot
;
...
...
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