Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b3644258
Commit
b3644258
authored
Jul 23, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed filter_chain for vout hack.
parent
56aefe31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
src/misc/filter_chain.c
src/misc/filter_chain.c
+16
-3
No files found.
src/misc/filter_chain.c
View file @
b3644258
...
@@ -346,19 +346,32 @@ picture_t *filter_chain_VideoFilter( filter_chain_t *p_chain, picture_t *p_pic )
...
@@ -346,19 +346,32 @@ picture_t *filter_chain_VideoFilter( filter_chain_t *p_chain, picture_t *p_pic )
{
{
filter_t
*
p_filter
=
pp_filter
[
i
];
filter_t
*
p_filter
=
pp_filter
[
i
];
picture_t
*
p_newpic
=
p_filter
->
pf_video_filter
(
p_filter
,
p_pic
);
picture_t
*
p_newpic
=
p_filter
->
pf_video_filter
(
p_filter
,
p_pic
);
if
(
!
p_newpic
)
return
NULL
;
/* FIXME Ugly hack to make it work in picture core.
/* FIXME Ugly hack to make it work in picture core.
* FIXME Remove this code when the picture release API has been
* FIXME Remove this code when the picture release API has been
* FIXME cleaned up (a git revert of the commit should work) */
* FIXME cleaned up (a git revert of the commit should work) */
if
(
p_chain
->
p_this
->
i_object_type
==
VLC_OBJECT_VOUT
)
if
(
p_chain
->
p_this
->
i_object_type
==
VLC_OBJECT_VOUT
)
{
{
vout_thread_t
*
p_vout
=
(
vout_thread_t
*
)
p_chain
->
p_this
;
vlc_mutex_lock
(
&
p_vout
->
picture_lock
);
if
(
p_pic
->
i_refcount
)
if
(
p_pic
->
i_refcount
)
{
p_pic
->
i_status
=
DISPLAYED_PICTURE
;
p_pic
->
i_status
=
DISPLAYED_PICTURE
;
}
else
else
{
p_pic
->
i_status
=
DESTROYED_PICTURE
;
p_pic
->
i_status
=
DESTROYED_PICTURE
;
p_newpic
->
i_status
=
READY_PICTURE
;
p_vout
->
i_heap_size
--
;
}
vlc_mutex_unlock
(
&
p_vout
->
picture_lock
);
if
(
p_newpic
)
p_newpic
->
i_status
=
READY_PICTURE
;
}
}
if
(
!
p_newpic
)
return
NULL
;
p_pic
=
p_newpic
;
p_pic
=
p_newpic
;
}
}
return
p_pic
;
return
p_pic
;
...
...
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