Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
2d3e6479
Commit
2d3e6479
authored
Mar 17, 2007
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/video_output/x11/xcommon.c: fix XShm detection on remote X.
parent
43b0f24c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
modules/video_output/x11/xcommon.c
modules/video_output/x11/xcommon.c
+12
-11
No files found.
modules/video_output/x11/xcommon.c
View file @
2d3e6479
...
...
@@ -2787,21 +2787,22 @@ static IMAGE_TYPE * CreateImage( vout_thread_t *p_vout,
*****************************************************************************/
static
int
X11ErrorHandler
(
Display
*
display
,
XErrorEvent
*
event
)
{
switch
(
event
->
request_code
)
{
case
X_SetInputFocus
:
/* Ingnore errors on XSetInputFocus()
* (they happen when a window is not yet mapped) */
if
(
event
->
request_code
==
X_SetInputFocus
)
{
fprintf
(
stderr
,
"XSetInputFocus failed
\n
"
);
return
0
;
}
if
(
event
->
request_code
==
150
/* MIT-SHM */
&&
event
->
minor_code
==
X_ShmAttach
)
case
150
:
/* MIT-SHM */
case
146
:
/* MIT-SHM too, what gives? */
if
(
event
->
minor_code
==
X_ShmAttach
)
{
fprintf
(
stderr
,
"XShmAttach failed
\n
"
);
b_shm
=
VLC_FALSE
;
return
0
;
}
break
;
}
XSetErrorHandler
(
NULL
);
return
(
XSetErrorHandler
(
X11ErrorHandler
))(
display
,
event
);
...
...
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