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
c2eac703
Commit
c2eac703
authored
Aug 26, 2013
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VAAPI spu: do not leak sys->spu on close.
parent
33a8caa7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
modules/video_output/vaapi/glx.c
modules/video_output/vaapi/glx.c
+3
-0
modules/video_output/vaapi/spu.c
modules/video_output/vaapi/spu.c
+4
-2
modules/video_output/vaapi/xcb.c
modules/video_output/vaapi/xcb.c
+3
-0
No files found.
modules/video_output/vaapi/glx.c
View file @
c2eac703
...
...
@@ -634,7 +634,10 @@ void CloseVaapiGLX(vlc_object_t *obj)
/* Cleanup cache */
if
(
sys
->
spu
)
{
vlc_va_spu_cache_Delete
(
va
,
sys
->
spu
);
sys
->
spu
=
NULL
;
}
/* Cleanup VAAPI resources and connection */
if
(
va
)
...
...
modules/video_output/vaapi/spu.c
View file @
c2eac703
...
...
@@ -707,7 +707,9 @@ spu_cache_t *vlc_va_spu_cache_Prepare(vlc_object_t *obj, vlc_va_conn_t *va, VAIm
cache
->
i_start
=
subpicture
->
i_start
;
cache
->
i_stop
=
subpicture
->
i_stop
;
#ifdef VAAPI_DEBUG
int
i_sub
=
0
;
#endif
subpicture_region_t
*
region
;
for
(
region
=
subpicture
->
p_region
;
region
!=
NULL
;
region
=
region
->
p_next
)
{
...
...
@@ -726,12 +728,11 @@ spu_cache_t *vlc_va_spu_cache_Prepare(vlc_object_t *obj, vlc_va_conn_t *va, VAIm
#ifdef VAAPI_DEBUG
msg_Dbg
(
obj
,
"+ %d: subid %d"
,
i_sub
,
vasub_cache
->
i_id
);
i_sub
++
;
#endif
vlc_array_append
(
&
cache
->
subpictures
,
(
void
*
)
vasub_cache
);
vasub_cache
=
NULL
;
i_sub
++
;
}
/* remember what was created, so it can be released in DisplayPicture() */
...
...
@@ -860,4 +861,5 @@ void vlc_va_spu_cache_Delete(vlc_va_conn_t *va, vlc_va_spu_cache_t *restrict spu
vlc_mutex_unlock
(
&
spu
->
lock
);
vlc_mutex_destroy
(
&
spu
->
lock
);
free
(
spu
);
}
modules/video_output/vaapi/xcb.c
View file @
c2eac703
...
...
@@ -358,7 +358,10 @@ void CloseVaapiXCB(vlc_object_t *obj)
/* Cleanup cache */
if
(
sys
->
spu
)
{
vlc_va_spu_cache_Delete
(
va
,
sys
->
spu
);
sys
->
spu
=
NULL
;
}
/* */
if
(
va
)
...
...
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