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
9c767262
Commit
9c767262
authored
Sep 16, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some debug
parent
a73e4106
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
modules/video_output/x11/xcommon.c
modules/video_output/x11/xcommon.c
+20
-1
No files found.
modules/video_output/x11/xcommon.c
View file @
9c767262
...
...
@@ -210,7 +210,7 @@ int E_(Activate) ( vlc_object_t *p_this )
p_vout
->
p_sys
->
p_display
=
XOpenDisplay
(
psz_display
);
if
(
p_vout
->
p_sys
->
p_display
==
NULL
)
/* error */
if
(
p_vout
->
p_sys
->
p_display
==
NULL
)
/* error */
{
msg_Err
(
p_vout
,
"cannot open display %s"
,
XDisplayName
(
psz_display
)
);
...
...
@@ -2622,6 +2622,17 @@ static int InitDisplay( vout_thread_t *p_vout )
# else
p_vout
->
p_sys
->
b_shm
=
(
XShmQueryExtension
(
p_vout
->
p_sys
->
p_display
)
==
True
);
if
(
p_vout
->
p_sys
->
b_shm
)
{
int
major
,
minor
;
Bool
pixmaps
;
XShmQueryVersion
(
p_vout
->
p_sys
->
p_display
,
&
major
,
&
minor
,
&
pixmaps
);
msg_Dbg
(
p_vout
,
"XShm video extension v%d.%d (with%s pixmaps)"
,
major
,
minor
,
pixmaps
?
""
:
"out"
);
}
# endif
if
(
!
p_vout
->
p_sys
->
b_shm
)
...
...
@@ -2907,6 +2918,14 @@ static IMAGE_TYPE * CreateImage( vout_thread_t *p_vout,
*****************************************************************************/
static
int
X11ErrorHandler
(
Display
*
display
,
XErrorEvent
*
event
)
{
char
txt
[
1024
];
XGetErrorText
(
display
,
event
->
error_code
,
txt
,
sizeof
(
txt
)
);
fprintf
(
stderr
,
"[????????] x11 video output error: X11 request %u.%u failed "
"with error code %u:
\n
%s
\n
"
,
event
->
request_code
,
event
->
minor_code
,
event
->
error_code
,
txt
);
switch
(
event
->
request_code
)
{
case
X_SetInputFocus
:
...
...
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