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
848f176f
Commit
848f176f
authored
Jul 28, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
image: use filter_(New|Delete)Picture()
parent
f5766175
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/misc/image.c
src/misc/image.c
+2
-3
No files found.
src/misc/image.c
View file @
848f176f
...
@@ -349,8 +349,7 @@ static block_t *ImageWrite( image_handler_t *p_image, picture_t *p_pic,
...
@@ -349,8 +349,7 @@ static block_t *ImageWrite( image_handler_t *p_image, picture_t *p_pic,
{
{
p_block
=
p_image
->
p_enc
->
pf_encode_video
(
p_image
->
p_enc
,
p_block
=
p_image
->
p_enc
->
pf_encode_video
(
p_image
->
p_enc
,
p_tmp_pic
);
p_tmp_pic
);
p_image
->
p_filter
->
pf_video_buffer_del
(
p_image
->
p_filter
,
filter_DeletePicture
(
p_image
->
p_filter
,
p_tmp_pic
);
p_tmp_pic
);
}
}
else
else
p_block
=
NULL
;
p_block
=
NULL
;
...
@@ -485,7 +484,7 @@ static picture_t *ImageConvert( image_handler_t *p_image, picture_t *p_pic,
...
@@ -485,7 +484,7 @@ static picture_t *ImageConvert( image_handler_t *p_image, picture_t *p_pic,
{
{
/* Duplicate image */
/* Duplicate image */
picture_Release
(
p_pif
);
/* XXX: Better fix must be possible */
picture_Release
(
p_pif
);
/* XXX: Better fix must be possible */
p_pif
=
p_image
->
p_filter
->
pf_video_buffer_new
(
p_image
->
p_filter
);
p_pif
=
filter_NewPicture
(
p_image
->
p_filter
);
if
(
p_pif
)
if
(
p_pif
)
picture_Copy
(
p_pif
,
p_pic
);
picture_Copy
(
p_pif
,
p_pic
);
}
}
...
...
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