Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xvba-video
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
xvba-video
Commits
47c4998c
Commit
47c4998c
authored
Apr 13, 2012
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xvba_video_glx.c: Various fixes
- fix error path in create_hw_image_glx()
parent
8ae2becd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/xvba_video_glx.c
src/xvba_video_glx.c
+7
-1
No files found.
src/xvba_video_glx.c
View file @
47c4998c
...
...
@@ -175,6 +175,8 @@ static void *render_thread(void *arg)
XXX: this assumes the Catalyst driver can still share GLX
contexts from another Display struct, though actually the very
same underlying X11 display (XDisplayString() shall match). */
XInitThreads();
Display *x11_dpy;
x11_dpy = XOpenDisplay(driver_data->x11_dpy_name);
if (!x11_dpy) {
...
...
@@ -382,9 +384,11 @@ create_hw_image_glx(
ASSERT
(
shader_fp_length
>
0
);
hwi
->
shader
=
gl_create_shader_object
(
shader_fp
,
shader_fp_length
);
if
(
!
hwi
->
shader
)
if
(
!
hwi
->
shader
)
{
destroy_hw_image_glx
(
driver_data
,
obj_image
);
return
VA_STATUS_ERROR_OPERATION_FAILED
;
}
}
hwi
->
width
=
obj_image
->
xvba_width
;
hwi
->
height
=
obj_image
->
xvba_height
;
...
...
@@ -401,6 +405,8 @@ commit_hw_image_glx(
)
{
object_image_glx_p
const
hwi
=
obj_image
->
hw
.
glx
;
if
(
!
hwi
)
return
VA_STATUS_ERROR_OPERATION_FAILED
;
const
int
is_I420
=
obj_image
->
image
.
format
.
fourcc
==
VA_FOURCC
(
'I'
,
'4'
,
'2'
,
'0'
);
unsigned
int
offsets
[
3
];
...
...
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