Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
a76c0461
Commit
a76c0461
authored
Jun 29, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics (moved down filter2 update)
parent
fae2f3f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
20 deletions
+19
-20
src/video_output/video_output.c
src/video_output/video_output.c
+19
-20
No files found.
src/video_output/video_output.c
View file @
a76c0461
...
...
@@ -913,26 +913,6 @@ static void RunThread( vout_thread_t *p_vout)
i_idle_loops
++
;
}
/* Video Filter2 stuff */
if
(
p_vout
->
psz_vf2
)
{
es_format_t
fmt
;
vlc_mutex_lock
(
&
p_vout
->
vfilter_lock
);
es_format_Init
(
&
fmt
,
VIDEO_ES
,
p_vout
->
fmt_render
.
i_chroma
);
fmt
.
video
=
p_vout
->
fmt_render
;
filter_chain_Reset
(
p_vout
->
p_vf2_chain
,
&
fmt
,
&
fmt
);
if
(
filter_chain_AppendFromString
(
p_vout
->
p_vf2_chain
,
p_vout
->
psz_vf2
)
<
0
)
msg_Err
(
p_vout
,
"Video filter chain creation failed"
);
free
(
p_vout
->
psz_vf2
);
p_vout
->
psz_vf2
=
NULL
;
vlc_mutex_unlock
(
&
p_vout
->
vfilter_lock
);
}
if
(
p_picture
)
{
p_picture
=
filter_chain_VideoFilter
(
p_vout
->
p_vf2_chain
,
...
...
@@ -1117,6 +1097,25 @@ static void RunThread( vout_thread_t *p_vout)
vlc_mutex_unlock
(
&
p_vout
->
picture_lock
);
}
/* Check for "video filter2" changes */
vlc_mutex_lock
(
&
p_vout
->
vfilter_lock
);
if
(
p_vout
->
psz_vf2
)
{
es_format_t
fmt
;
es_format_Init
(
&
fmt
,
VIDEO_ES
,
p_vout
->
fmt_render
.
i_chroma
);
fmt
.
video
=
p_vout
->
fmt_render
;
filter_chain_Reset
(
p_vout
->
p_vf2_chain
,
&
fmt
,
&
fmt
);
if
(
filter_chain_AppendFromString
(
p_vout
->
p_vf2_chain
,
p_vout
->
psz_vf2
)
<
0
)
msg_Err
(
p_vout
,
"Video filter chain creation failed"
);
free
(
p_vout
->
psz_vf2
);
p_vout
->
psz_vf2
=
NULL
;
}
vlc_mutex_unlock
(
&
p_vout
->
vfilter_lock
);
}
...
...
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