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
1d20c495
Commit
1d20c495
authored
Jun 07, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vdpau/chroma: fix leak on error
parent
7f569759
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/hw/vdpau/chroma.c
modules/hw/vdpau/chroma.c
+5
-2
No files found.
modules/hw/vdpau/chroma.c
View file @
1d20c495
...
...
@@ -428,7 +428,7 @@ static picture_t *VideoPassthrough(filter_t *filter, picture_t *src)
if
(
unlikely
(
field
==
NULL
))
{
msg_Err
(
filter
,
"corrupt VDPAU video surface"
);
return
NULL
;
goto
error
;
}
vlc_vdp_video_frame_t
*
psys
=
field
->
frame
;
...
...
@@ -447,7 +447,7 @@ static picture_t *VideoPassthrough(filter_t *filter, picture_t *src)
picture_t
*
pic
=
picture_NewFromFormat
(
&
fmt
);
if
(
unlikely
(
pic
==
NULL
))
return
NULL
;
goto
error
;
pic
=
VideoExport
(
filter
,
src
,
pic
);
if
(
pic
==
NULL
)
...
...
@@ -456,6 +456,9 @@ static picture_t *VideoPassthrough(filter_t *filter, picture_t *src)
src
=
VideoImport
(
filter
,
pic
);
}
return
src
;
error:
picture_Release
(
src
);
return
NULL
;
}
static
inline
VdpVideoSurface
picture_GetVideoSurface
(
const
picture_t
*
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