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
a5373290
Commit
a5373290
authored
Nov 29, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GLX: remove MIT-SHM support infrastructure
GLX does not use SysV shared memory directly.
parent
547c0f40
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
21 deletions
+12
-21
modules/video_output/x11/glx.c
modules/video_output/x11/glx.c
+0
-7
modules/video_output/x11/xcommon.c
modules/video_output/x11/xcommon.c
+9
-13
modules/video_output/x11/xcommon.h
modules/video_output/x11/xcommon.h
+3
-1
No files found.
modules/video_output/x11/glx.c
View file @
a5373290
...
...
@@ -37,17 +37,10 @@
#include <vlc_interface.h>
#include <vlc_vout.h>
#ifdef HAVE_SYS_SHM_H
# include <sys/shm.h>
/* shmget(), shmctl() */
#endif
#include <X11/Xlib.h>
#include <X11/Xmd.h>
#include <X11/Xutil.h>
#include <X11/keysym.h>
#ifdef HAVE_SYS_SHM_H
# include <X11/extensions/XShm.h>
#endif
#ifdef DPMSINFO_IN_DPMS_H
# include <X11/extensions/dpms.h>
#endif
...
...
modules/video_output/x11/xcommon.c
View file @
a5373290
...
...
@@ -48,15 +48,12 @@
#include <X11/extensions/Xsp.h>
#endif
#ifdef HAVE_SYS_SHM_H
# include <sys/shm.h>
/* shmget(), shmctl() */
#endif
#include <X11/Xlib.h>
#include <X11/Xproto.h>
#include <X11/Xmd.h>
#include <X11/Xutil.h>
#ifdef HAVE_SYS_SHM_H
#if defined (HAVE_SYS_SHM_H) && !defined (MODULE_NAME_IS_glx)
# include <sys/shm.h>
/* shmget(), shmctl() */
# include <X11/extensions/XShm.h>
#endif
#ifdef DPMSINFO_IN_DPMS_H
...
...
@@ -86,22 +83,20 @@ void Deactivate ( vlc_object_t * );
static
int
InitVideo
(
vout_thread_t
*
);
static
void
EndVideo
(
vout_thread_t
*
);
static
void
DisplayVideo
(
vout_thread_t
*
,
picture_t
*
);
static
int
InitDisplay
(
vout_thread_t
*
);
#endif
static
int
ManageVideo
(
vout_thread_t
*
);
static
int
Control
(
vout_thread_t
*
,
int
,
va_list
);
static
int
InitDisplay
(
vout_thread_t
*
);
static
int
CreateWindow
(
vout_thread_t
*
,
x11_window_t
*
);
static
void
DestroyWindow
(
vout_thread_t
*
,
x11_window_t
*
);
#ifndef MODULE_NAME_IS_glx
static
int
NewPicture
(
vout_thread_t
*
,
picture_t
*
);
static
void
FreePicture
(
vout_thread_t
*
,
picture_t
*
);
#endif
#ifdef HAVE_SYS_SHM_H
# ifdef HAVE_SYS_SHM_H
static
int
i_shm_major
=
0
;
# endif
#endif
static
void
ToggleFullScreen
(
vout_thread_t
*
);
...
...
@@ -316,6 +311,7 @@ int Activate ( vlc_object_t *p_this )
return
VLC_EGENERIC
;
}
#ifndef MODULE_NAME_IS_glx
/* Open and initialize device. */
if
(
InitDisplay
(
p_vout
)
)
{
...
...
@@ -326,6 +322,7 @@ int Activate ( vlc_object_t *p_this )
free
(
p_vout
->
p_sys
);
return
VLC_EGENERIC
;
}
#endif
/* Disable screen saver */
DisableXScreenSaver
(
p_vout
);
...
...
@@ -2011,6 +2008,7 @@ static int XVideoGetPort( vout_thread_t *p_vout,
}
#endif
#ifndef MODULE_NAME_IS_glx
/*****************************************************************************
* InitDisplay: open and initialize X11 device
*****************************************************************************
...
...
@@ -2053,8 +2051,6 @@ static int InitDisplay( vout_thread_t *p_vout )
return
VLC_SUCCESS
;
}
#ifndef MODULE_NAME_IS_glx
#ifdef HAVE_SYS_SHM_H
/*****************************************************************************
* CreateShmImage: create an XImage or XvImage using shared memory extension
...
...
@@ -2169,7 +2165,7 @@ static int X11ErrorHandler( Display * display, XErrorEvent * event )
return
0
;
}
#if
def HAVE_SYS_SHM_H
#if
defined (HAVE_SYS_SHM_H) && !defined (MODULE_NAME_IS_glx)
if
(
event
->
request_code
==
i_shm_major
)
/* MIT-SHM */
{
fprintf
(
stderr
,
...
...
modules/video_output/x11/xcommon.h
View file @
a5373290
...
...
@@ -208,7 +208,7 @@ struct vout_sys_t
x11_window_t
window
;
/* X11 generic properties */
#if
def HAVE_SYS_SHM_H
#if
defined (HAVE_SYS_SHM_H) && !defined (MODULE_NAME_IS_glx)
int
i_shm_opcode
;
/* shared memory extension opcode */
#endif
...
...
@@ -303,6 +303,7 @@ struct vout_sys_t
#endif
};
#ifndef MODULE_NAME_IS_glx
/*****************************************************************************
* picture_sys_t: direct buffer method descriptor
*****************************************************************************
...
...
@@ -325,6 +326,7 @@ struct picture_sys_t
int
nb_display
;
#endif
};
#endif
/*****************************************************************************
* mwmhints_t: window manager hints
...
...
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