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
41129b46
Commit
41129b46
authored
Jan 30, 2016
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Feb 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11va: fix a crash when we can't allocate the decoding texture
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
82b3f53d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
modules/codec/avcodec/d3d11va.c
modules/codec/avcodec/d3d11va.c
+1
-0
No files found.
modules/codec/avcodec/d3d11va.c
View file @
41129b46
...
@@ -711,6 +711,7 @@ static int DxCreateDecoderSurfaces(vlc_va_t *va, int codec_id, const video_forma
...
@@ -711,6 +711,7 @@ static int DxCreateDecoderSurfaces(vlc_va_t *va, int codec_id, const video_forma
hr
=
ID3D11Device_CreateTexture2D
(
(
ID3D11Device
*
)
dx_sys
->
d3ddev
,
&
texDesc
,
NULL
,
&
p_texture
);
hr
=
ID3D11Device_CreateTexture2D
(
(
ID3D11Device
*
)
dx_sys
->
d3ddev
,
&
texDesc
,
NULL
,
&
p_texture
);
if
(
FAILED
(
hr
))
{
if
(
FAILED
(
hr
))
{
msg_Err
(
va
,
"CreateTexture2D %d failed. (hr=0x%0lx)"
,
dx_sys
->
surface_count
,
hr
);
msg_Err
(
va
,
"CreateTexture2D %d failed. (hr=0x%0lx)"
,
dx_sys
->
surface_count
,
hr
);
dx_sys
->
surface_count
=
0
;
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
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