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
ece9d8a3
Commit
ece9d8a3
authored
Jul 21, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use picture_New.
parent
8ffbd86a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
25 deletions
+8
-25
src/misc/filter_chain.c
src/misc/filter_chain.c
+8
-25
No files found.
src/misc/filter_chain.c
View file @
ece9d8a3
...
...
@@ -54,7 +54,6 @@ static int filter_chain_DeleteFilterInternal( filter_chain_t *, filter_t * );
static
int
UpdateBufferFunctions
(
filter_chain_t
*
);
static
picture_t
*
VideoBufferNew
(
filter_t
*
);
static
void
VideoBufferRelease
(
picture_t
*
);
/**
* Filter chain initialisation
...
...
@@ -445,29 +444,13 @@ static int UpdateBufferFunctions( filter_chain_t *p_chain )
static
picture_t
*
VideoBufferNew
(
filter_t
*
p_filter
)
{
picture_t
*
p_pic
=
malloc
(
sizeof
(
picture_t
)
);
if
(
!
p_pic
)
return
NULL
;
memset
(
p_pic
,
0
,
sizeof
(
picture_t
*
)
);
int
i_ret
=
vout_AllocatePicture
(
VLC_OBJECT
(
p_filter
),
p_pic
,
p_filter
->
fmt_out
.
video
.
i_chroma
,
p_filter
->
fmt_out
.
video
.
i_width
,
p_filter
->
fmt_out
.
video
.
i_height
,
p_filter
->
fmt_out
.
video
.
i_aspect
);
if
(
i_ret
!=
VLC_SUCCESS
)
{
msg_Err
(
p_filter
,
"Failed to allocate picture: %s"
,
vlc_error
(
i_ret
)
);
free
(
p_pic
);
return
NULL
;
}
p_pic
->
pf_release
=
VideoBufferRelease
;
p_pic
->
i_type
=
MEMORY_PICTURE
;
p_pic
->
i_status
=
RESERVED_PICTURE
;
return
p_pic
;
const
video_format_t
*
p_fmt
=
&
p_filter
->
fmt_out
.
video
;
picture_t
*
p_picture
=
picture_New
(
p_fmt
->
i_chroma
,
p_fmt
->
i_width
,
p_fmt
->
i_height
,
p_fmt
->
i_aspect
);
if
(
!
p_picture
)
msg_Err
(
p_filter
,
"Failed to allocate picture
\n
"
);
return
p_picture
;
}
static
void
VideoBufferRelease
(
picture_t
*
p_pic
)
{
free
(
p_pic
->
p_data_orig
);
free
(
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