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
8e1a72a2
Commit
8e1a72a2
authored
Jul 28, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spu: avoid pointless alloc and indirection
parent
398cabc6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+2
-6
No files found.
src/video_output/vout_subpictures.c
View file @
8e1a72a2
...
@@ -165,7 +165,6 @@ static void FilterRelease(filter_t *filter)
...
@@ -165,7 +165,6 @@ static void FilterRelease(filter_t *filter)
{
{
if
(
filter
->
p_module
)
if
(
filter
->
p_module
)
module_unneed
(
filter
,
filter
->
p_module
);
module_unneed
(
filter
,
filter
->
p_module
);
free
(
filter
->
owner
.
sys
);
vlc_object_release
(
filter
);
vlc_object_release
(
filter
);
}
}
...
@@ -186,8 +185,7 @@ static int spu_get_attachments(filter_t *filter,
...
@@ -186,8 +185,7 @@ static int spu_get_attachments(filter_t *filter,
input_attachment_t
***
attachment_ptr
,
input_attachment_t
***
attachment_ptr
,
int
*
attachment_count
)
int
*
attachment_count
)
{
{
filter_owner_sys_t
*
sys
=
filter
->
owner
.
sys
;
spu_t
*
spu
=
filter
->
owner
.
sys
;
spu_t
*
spu
=
sys
->
spu
;
int
ret
=
VLC_EGENERIC
;
int
ret
=
VLC_EGENERIC
;
if
(
spu
->
p
->
input
)
if
(
spu
->
p
->
input
)
...
@@ -203,9 +201,7 @@ static filter_t *SpuRenderCreateAndLoadText(spu_t *spu)
...
@@ -203,9 +201,7 @@ static filter_t *SpuRenderCreateAndLoadText(spu_t *spu)
if
(
!
text
)
if
(
!
text
)
return
NULL
;
return
NULL
;
filter_owner_sys_t
*
sys
=
xmalloc
(
sizeof
(
*
sys
));
text
->
owner
.
sys
=
spu
;
sys
->
spu
=
spu
;
text
->
owner
.
sys
=
sys
;
es_format_Init
(
&
text
->
fmt_in
,
VIDEO_ES
,
0
);
es_format_Init
(
&
text
->
fmt_in
,
VIDEO_ES
,
0
);
...
...
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