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
bb03e12e
Commit
bb03e12e
authored
Jun 10, 2008
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partially fix sub picture filter chain handling. Still needs a bit of
work.
parent
a7588a7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
src/misc/filter_chain.c
src/misc/filter_chain.c
+10
-4
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+2
-8
No files found.
src/misc/filter_chain.c
View file @
bb03e12e
...
...
@@ -95,10 +95,16 @@ void filter_chain_Reset( filter_chain_t *p_chain, const es_format_t *p_fmt_in,
while
(
p_chain
->
filters
.
i_count
)
filter_chain_DeleteFilter
(
p_chain
,
(
filter_t
*
)
p_chain
->
filters
.
pp_elems
[
0
]
);
es_format_Clean
(
&
p_chain
->
fmt_in
);
es_format_Clean
(
&
p_chain
->
fmt_out
);
es_format_Copy
(
&
p_chain
->
fmt_in
,
p_fmt_in
);
es_format_Copy
(
&
p_chain
->
fmt_out
,
p_fmt_out
);
if
(
p_fmt_in
)
{
es_format_Clean
(
&
p_chain
->
fmt_in
);
es_format_Copy
(
&
p_chain
->
fmt_in
,
p_fmt_in
);
}
if
(
p_fmt_out
)
{
es_format_Clean
(
&
p_chain
->
fmt_out
);
es_format_Copy
(
&
p_chain
->
fmt_out
,
p_fmt_out
);
}
}
...
...
src/video_output/vout_subpictures.c
View file @
bb03e12e
...
...
@@ -54,7 +54,6 @@ static picture_t *spu_new_video_buffer( filter_t * );
static
void
spu_del_video_buffer
(
filter_t
*
,
picture_t
*
);
static
int
spu_ParseChain
(
spu_t
*
);
static
void
spu_DeleteChain
(
spu_t
*
);
static
int
SubFilterCallback
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
...
...
@@ -189,17 +188,12 @@ void spu_Destroy( spu_t *p_spu )
vlc_object_release
(
p_spu
->
p_scale
);
}
spu_DeleteChain
(
p_spu
);
filter_chain_Delete
(
p_spu
->
p_chain
);
vlc_mutex_destroy
(
&
p_spu
->
subpicture_lock
);
vlc_object_release
(
p_spu
);
}
static
void
spu_DeleteChain
(
spu_t
*
p_spu
)
{
filter_chain_Delete
(
p_spu
->
p_chain
);
}
/**
* Attach/Detach the SPU from any input
*
...
...
@@ -1345,7 +1339,7 @@ static int SubFilterCallback( vlc_object_t *p_object, char const *psz_var,
spu_t
*
p_spu
=
(
spu_t
*
)
p_data
;
vlc_mutex_lock
(
&
p_spu
->
subpicture_lock
);
spu_DeleteChain
(
p_spu
);
filter_chain_Reset
(
p_spu
->
p_chain
,
NULL
,
NULL
);
spu_ParseChain
(
p_spu
);
vlc_mutex_unlock
(
&
p_spu
->
subpicture_lock
);
return
VLC_SUCCESS
;
...
...
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