Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
9e81bb49
Commit
9e81bb49
authored
Jul 17, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Fixed image_Convert by properly overriding release policy."
A simpler way is comming. This reverts commit
796e7202
.
parent
9a72071a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
src/misc/image.c
src/misc/image.c
+1
-14
No files found.
src/misc/image.c
View file @
9e81bb49
...
...
@@ -70,9 +70,6 @@ static filter_t *CreateFilter( vlc_object_t *, es_format_t *,
static
void
DeleteFilter
(
filter_t
*
);
static
vlc_fourcc_t
Ext2Fourcc
(
const
char
*
);
static
void
video_release_buffer_dummy
(
picture_t
*
p_pic
);
/*static const char *Fourcc2Ext( vlc_fourcc_t );*/
/**
...
...
@@ -448,14 +445,8 @@ static picture_t *ImageConvert( image_handler_t *p_image, picture_t *p_pic,
p_image
->
p_filter
->
fmt_out
.
video
=
*
p_fmt_out
;
}
/* We have to override the current release scheme for p_pic.
* (You cannot suppose what pf_release will do or even if it
* is defined) */
void
(
*
pf_sav_release
)(
picture_t
*
)
=
p_pic
->
pf_release
;
p_pic
->
pf_release
=
video_release_buffer_dummy
;
p_pic
->
i_refcount
++
;
/* pf_video_filter() will call pf_release() */
p_pif
=
p_image
->
p_filter
->
pf_video_filter
(
p_image
->
p_filter
,
p_pic
);
p_pic
->
pf_release
=
pf_sav_release
;
if
(
p_fmt_in
->
i_chroma
==
p_fmt_out
->
i_chroma
&&
p_fmt_in
->
i_width
==
p_fmt_out
->
i_width
&&
...
...
@@ -572,10 +563,6 @@ static const char *Fourcc2Ext( vlc_fourcc_t i_codec )
}
*/
static
void
video_release_buffer_dummy
(
picture_t
*
p_pic
)
{
VLC_UNUSED
(
p_pic
);
}
static
void
video_release_buffer
(
picture_t
*
p_pic
)
{
if
(
--
p_pic
->
i_refcount
>
0
)
return
;
...
...
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