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
05e98ecf
Commit
05e98ecf
authored
Jun 07, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vdpau/chroma: avoid cascading errors when mixer creation fails
parent
dd4ad1f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/hw/vdpau/chroma.c
modules/hw/vdpau/chroma.c
+3
-2
No files found.
modules/hw/vdpau/chroma.c
View file @
05e98ecf
...
@@ -197,9 +197,11 @@ static VdpVideoMixer MixerCreate(filter_t *filter)
...
@@ -197,9 +197,11 @@ static VdpVideoMixer MixerCreate(filter_t *filter)
{
{
msg_Err
(
filter
,
"video %s %s failure: %s"
,
"mixer"
,
"creation"
,
msg_Err
(
filter
,
"video %s %s failure: %s"
,
"mixer"
,
"creation"
,
vdp_get_error_string
(
sys
->
vdp
,
err
));
vdp_get_error_string
(
sys
->
vdp
,
err
));
mixer
=
VDP_INVALID_HANDLE
;
return
VDP_INVALID_HANDLE
;
}
}
msg_Dbg
(
filter
,
"using video mixer %"
PRIu32
,
mixer
);
/* Set initial features and attributes */
/* Set initial features and attributes */
VdpVideoMixerAttribute
attrv
[
3
];
VdpVideoMixerAttribute
attrv
[
3
];
const
void
*
valv
[
3
];
const
void
*
valv
[
3
];
...
@@ -305,7 +307,6 @@ static picture_t *OutputAllocate(filter_t *filter)
...
@@ -305,7 +307,6 @@ static picture_t *OutputAllocate(filter_t *filter)
sys
->
mixer
=
MixerCreate
(
filter
);
sys
->
mixer
=
MixerCreate
(
filter
);
if
(
sys
->
mixer
==
VDP_INVALID_HANDLE
)
if
(
sys
->
mixer
==
VDP_INVALID_HANDLE
)
goto
error
;
goto
error
;
msg_Dbg
(
filter
,
"using video mixer %"
PRIu32
,
sys
->
mixer
);
}
}
return
pic
;
return
pic
;
error:
error:
...
...
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