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
40420d96
Commit
40420d96
authored
Mar 04, 2014
by
Felix Abecassis
Committed by
Rémi Denis-Courmont
Mar 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxva2: remove useless variable
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
e3dfdba2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
modules/codec/avcodec/dxva2.c
modules/codec/avcodec/dxva2.c
+3
-6
No files found.
modules/codec/avcodec/dxva2.c
View file @
40420d96
...
...
@@ -347,8 +347,6 @@ static int Setup(vlc_va_t *external, void **hw, vlc_fourcc_t *chroma,
va
->
hw
.
cfg
=
&
va
->
cfg
;
va
->
hw
.
surface_count
=
va
->
surface_count
;
va
->
hw
.
surface
=
va
->
hw_surface
;
for
(
unsigned
i
=
0
;
i
<
va
->
surface_count
;
i
++
)
va
->
hw
.
surface
[
i
]
=
va
->
surface
[
i
].
d3d
;
/* */
DxCreateVideoConversion
(
va
);
...
...
@@ -865,7 +863,6 @@ static int DxCreateVideoDecoder(vlc_va_dxva2_t *va,
va
->
surface_count
=
2
+
1
;
break
;
}
LPDIRECT3DSURFACE9
surface_list
[
VA_DXVA2_MAX_SURFACE_COUNT
];
if
(
FAILED
(
IDirectXVideoDecoderService_CreateSurface
(
va
->
vs
,
va
->
surface_width
,
va
->
surface_height
,
...
...
@@ -874,7 +871,7 @@ static int DxCreateVideoDecoder(vlc_va_dxva2_t *va,
D3DPOOL_DEFAULT
,
0
,
DXVA2_VideoDecoderRenderTarget
,
surface_list
,
va
->
hw_surface
,
NULL
)))
{
msg_Err
(
va
->
log
,
"IDirectXVideoAccelerationService_CreateSurface failed"
);
va
->
surface_count
=
0
;
...
...
@@ -882,7 +879,7 @@ static int DxCreateVideoDecoder(vlc_va_dxva2_t *va,
}
for
(
unsigned
i
=
0
;
i
<
va
->
surface_count
;
i
++
)
{
vlc_va_surface_t
*
surface
=
&
va
->
surface
[
i
];
surface
->
d3d
=
surface_list
[
i
];
surface
->
d3d
=
va
->
hw_surface
[
i
];
surface
->
refcount
=
0
;
surface
->
order
=
0
;
}
...
...
@@ -967,7 +964,7 @@ static int DxCreateVideoDecoder(vlc_va_dxva2_t *va,
&
va
->
input
,
&
dsc
,
&
va
->
cfg
,
surface_list
,
va
->
hw_surface
,
va
->
surface_count
,
&
decoder
)))
{
msg_Err
(
va
->
log
,
"IDirectXVideoDecoderService_CreateVideoDecoder failed"
);
...
...
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