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
6f9b58fa
Commit
6f9b58fa
authored
Jun 27, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
picture_pool: remove picture_gc_sys_t.picture
parent
22e61f10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
src/misc/picture_pool.c
src/misc/picture_pool.c
+3
-5
No files found.
src/misc/picture_pool.c
View file @
6f9b58fa
...
...
@@ -42,7 +42,6 @@
*****************************************************************************/
struct
picture_gc_sys_t
{
picture_pool_t
*
pool
;
picture_t
*
picture
;
unsigned
offset
;
};
...
...
@@ -83,7 +82,7 @@ static void picture_pool_ReleasePicture(picture_t *picture)
picture_pool_t
*
pool
=
sys
->
pool
;
if
(
pool
->
pic_unlock
!=
NULL
)
pool
->
pic_unlock
(
sys
->
picture
);
pool
->
pic_unlock
(
pool
->
picture
[
sys
->
offset
]
);
vlc_mutex_lock
(
&
pool
->
lock
);
assert
(
!
(
pool
->
available
&
(
1ULL
<<
sys
->
offset
)));
...
...
@@ -97,15 +96,14 @@ static void picture_pool_ReleasePicture(picture_t *picture)
}
static
picture_t
*
picture_pool_ClonePicture
(
picture_pool_t
*
pool
,
picture_t
*
picture
,
unsigned
offset
)
{
picture_t
*
picture
=
pool
->
picture
[
offset
];
picture_gc_sys_t
*
sys
=
malloc
(
sizeof
(
*
sys
));
if
(
unlikely
(
sys
==
NULL
))
return
NULL
;
sys
->
pool
=
pool
;
sys
->
picture
=
picture
;
sys
->
offset
=
offset
;
picture_resource_t
res
=
{
...
...
@@ -229,7 +227,7 @@ picture_t *picture_pool_Get(picture_pool_t *pool)
continue
;
}
picture_t
*
clone
=
picture_pool_ClonePicture
(
pool
,
picture
,
i
);
picture_t
*
clone
=
picture_pool_ClonePicture
(
pool
,
i
);
assert
(
unlikely
(
clone
==
NULL
)
||
clone
->
p_next
==
NULL
);
return
clone
;
}
...
...
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