Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
b08d2a72
Commit
b08d2a72
authored
Jul 24, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vaapi: avoid usage of vlc_va_t * from the release callback
This will simplify later commits.
parent
fdf06282
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/codec/avcodec/vaapi.c
modules/codec/avcodec/vaapi.c
+4
-4
No files found.
modules/codec/avcodec/vaapi.c
View file @
b08d2a72
...
...
@@ -62,7 +62,7 @@ typedef struct
VASurfaceID
i_id
;
int
i_refcount
;
unsigned
int
i_order
;
vlc_mutex_t
*
p_lock
;
}
vlc_va_surface_t
;
struct
vlc_va_sys_t
...
...
@@ -284,6 +284,7 @@ static int CreateSurfaces( vlc_va_sys_t *sys, void **pp_hw_ctx, vlc_fourcc_t *pi
p_surface
->
i_id
=
pi_surface_id
[
i
];
p_surface
->
i_refcount
=
0
;
p_surface
->
i_order
=
0
;
p_surface
->
p_lock
=
&
sys
->
lock
;
}
/* Create a context */
...
...
@@ -519,12 +520,11 @@ static int Get( vlc_va_t *va, AVFrame *p_ff )
static
void
Release
(
vlc_va_t
*
va
,
AVFrame
*
p_ff
)
{
vlc_va_sys_t
*
sys
=
va
->
sys
;
vlc_va_surface_t
*
p_surface
=
p_ff
->
opaque
;
vlc_mutex_lock
(
&
sys
->
lock
);
vlc_mutex_lock
(
p_surface
->
p_
lock
);
p_surface
->
i_refcount
--
;
vlc_mutex_unlock
(
&
sys
->
lock
);
vlc_mutex_unlock
(
p_surface
->
p_
lock
);
}
static
void
Close
(
vlc_va_sys_t
*
sys
)
...
...
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