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
d7644d8d
Commit
d7644d8d
authored
Mar 25, 2007
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove last call to strchr( , ':' ) and fix a small memleak.
parent
57eba9e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
src/video_output/video_output.c
src/video_output/video_output.c
+9
-6
No files found.
src/video_output/video_output.c
View file @
d7644d8d
...
@@ -351,13 +351,15 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
...
@@ -351,13 +351,15 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
else
else
{
{
/* continue the parent's filter chain */
/* continue the parent's filter chain */
char
*
psz_
end
;
char
*
psz_
tmp
;
/* FIXME: use config_ChainParse */
/* Ugly hack to jump to our configuration chain */
psz_end
=
strchr
(
((
vout_thread_t
*
)
p_parent
)
->
psz_filter_chain
,
':'
);
p_vout
->
psz_filter_chain
if
(
psz_end
&&
*
(
psz_end
+
1
)
)
=
((
vout_thread_t
*
)
p_parent
)
->
psz_filter_chain
;
p_vout
->
psz_filter_chain
=
strdup
(
psz_end
+
1
);
p_vout
->
psz_filter_chain
else
p_vout
->
psz_filter_chain
=
NULL
;
=
config_ChainCreate
(
&
psz_tmp
,
&
p_cfg
,
p_vout
->
psz_filter_chain
);
config_ChainDestroy
(
p_cfg
);
free
(
psz_tmp
);
/* Create a video filter2 var ... but don't inherit values */
/* Create a video filter2 var ... but don't inherit values */
var_Create
(
p_vout
,
"video-filter"
,
VLC_VAR_STRING
);
var_Create
(
p_vout
,
"video-filter"
,
VLC_VAR_STRING
);
...
@@ -387,6 +389,7 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
...
@@ -387,6 +389,7 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
p_vout
->
p_module
=
module_Need
(
p_vout
,
p_vout
->
p_module
=
module_Need
(
p_vout
,
(
p_vout
->
psz_filter_chain
&&
*
p_vout
->
psz_filter_chain
)
?
(
p_vout
->
psz_filter_chain
&&
*
p_vout
->
psz_filter_chain
)
?
"video filter"
:
"video output"
,
psz_name
,
0
);
"video filter"
:
"video output"
,
psz_name
,
0
);
free
(
psz_name
);
if
(
p_vout
->
p_module
==
NULL
)
if
(
p_vout
->
p_module
==
NULL
)
{
{
...
...
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