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
60211457
Commit
60211457
authored
Jul 08, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codec/avcodec/vaapi*.c: Cleanup
Rename vlc_va_conn_t::p_display_x11 to vlc_va_conn_t::p_x11.
parent
c4da95eb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
modules/codec/avcodec/va.c
modules/codec/avcodec/va.c
+6
-6
modules/codec/avcodec/vaapi.h
modules/codec/avcodec/vaapi.h
+1
-1
modules/codec/avcodec/vaapi_x11.c
modules/codec/avcodec/vaapi_x11.c
+7
-7
No files found.
modules/codec/avcodec/va.c
View file @
60211457
...
...
@@ -84,11 +84,11 @@ vlc_va_conn_t *vlc_va_Initialize( const char *display_name )
conn
->
unlock
=
vlc_va_unlock
;
/* Create a VA display */
conn
->
p_
display_
x11
=
XOpenDisplay
(
display_name
);
if
(
!
conn
->
p_
display_
x11
)
conn
->
p_x11
=
XOpenDisplay
(
display_name
);
if
(
!
conn
->
p_x11
)
goto
error
;
conn
->
p_display
=
vaGetDisplay
(
conn
->
p_
display_
x11
);
conn
->
p_display
=
vaGetDisplay
(
conn
->
p_x11
);
if
(
!
conn
->
p_display
)
goto
error
;
...
...
@@ -114,12 +114,12 @@ void vlc_va_Terminate( vlc_va_conn_t *conn )
if
(
conn
->
p_display
)
vaTerminate
(
conn
->
p_display
);
if
(
conn
->
p_
display_
x11
)
XCloseDisplay
(
conn
->
p_
display_
x11
);
if
(
conn
->
p_x11
)
XCloseDisplay
(
conn
->
p_x11
);
/* Reset values */
conn
->
p_display
=
0
;
conn
->
p_
display_
x11
=
NULL
;
conn
->
p_x11
=
NULL
;
conn
->
i_version_major
=
conn
->
i_version_minor
=
0
;
conn
->
i_ref_count
=
0
;
conn
=
NULL
;
...
...
modules/codec/avcodec/vaapi.h
View file @
60211457
...
...
@@ -20,7 +20,7 @@
#ifdef HAVE_AVCODEC_VAAPI
struct
vlc_va_conn_t
{
Display
*
p_
display_
x11
;
Display
*
p_x11
;
VADisplay
p_display
;
int
i_version_major
;
int
i_version_minor
;
...
...
modules/codec/avcodec/vaapi_x11.c
View file @
60211457
...
...
@@ -317,9 +317,9 @@ static vout_window_t *MakeWindow (vout_display_t *vd)
* looks like it assumes fullscreen for
* vout_display_PlacePicture() to work as expected. */
unsigned
int
width
,
height
;
int
screen
=
DefaultScreen
(
sys
->
conn
->
p_
display_
x11
);
width
=
DisplayWidth
(
sys
->
conn
->
p_
display_
x11
,
screen
);
height
=
DisplayHeight
(
sys
->
conn
->
p_
display_
x11
,
screen
);
int
screen
=
DefaultScreen
(
sys
->
conn
->
p_x11
);
width
=
DisplayWidth
(
sys
->
conn
->
p_x11
,
screen
);
height
=
DisplayHeight
(
sys
->
conn
->
p_x11
,
screen
);
sys
->
conn
->
unlock
();
memset
(
&
wnd_cfg
,
0
,
sizeof
(
wnd_cfg
));
...
...
@@ -345,7 +345,7 @@ static int GetWindowSize(vout_display_t *vd, unsigned int *pi_width, unsigned in
unsigned
int
bw
,
depth
;
sys
->
conn
->
lock
();
status
=
XGetGeometry
(
sys
->
conn
->
p_
display_
x11
,
status
=
XGetGeometry
(
sys
->
conn
->
p_x11
,
sys
->
embed
->
handle
.
xid
,
&
root_window
,
&
x
,
&
y
,
pi_width
,
pi_height
,
...
...
@@ -452,11 +452,11 @@ void CloseVaapiX11 (vlc_object_t *obj)
vout_display_t
*
vd
=
(
vout_display_t
*
)
obj
;
vout_display_sys_t
*
sys
=
(
vout_display_sys_t
*
)
vd
->
sys
;
if
(
sys
->
conn
&&
sys
->
conn
->
p_
display_
x11
)
if
(
sys
->
conn
&&
sys
->
conn
->
p_x11
)
{
sys
->
conn
->
lock
();
XFlush
(
sys
->
conn
->
p_
display_
x11
);
XSync
(
sys
->
conn
->
p_
display_
x11
,
False
);
XFlush
(
sys
->
conn
->
p_x11
);
XSync
(
sys
->
conn
->
p_x11
,
False
);
sys
->
conn
->
unlock
();
}
...
...
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