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
123e35c9
Commit
123e35c9
authored
Sep 17, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up a bit subpicture release code.
parent
7c73eafc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+9
-4
No files found.
src/video_output/vout_subpictures.c
View file @
123e35c9
...
...
@@ -215,11 +215,15 @@ void spu_Attach( spu_t *p_spu, vlc_object_t *p_this, bool b_attach )
/* */
static
void
RegionPictureRelease
(
picture_t
*
p_pic
)
static
void
RegionPictureRelease
(
picture_t
*
p_pic
ture
)
{
free
(
p_pic
->
p_data_orig
);
/* We use pf_release nullity to know if the picture has already been released. */
p_pic
->
pf_release
=
NULL
;
if
(
--
p_picture
->
i_refcount
>
0
)
return
;
assert
(
p_picture
->
i_refcount
==
0
);
free
(
p_picture
->
p_q
);
free
(
p_picture
->
p_data_orig
);
free
(
p_picture
->
p_sys
);
}
/**
...
...
@@ -261,6 +265,7 @@ subpicture_region_t *__spu_CreateRegion( vlc_object_t *p_this,
return
NULL
;
}
p_region
->
picture
.
i_refcount
=
1
;
p_region
->
picture
.
pf_release
=
RegionPictureRelease
;
return
p_region
;
...
...
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