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
8715adf8
Commit
8715adf8
authored
Nov 27, 2001
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various (sometimes hopeless) fixes to try to improve xvideo stability.
parent
c50ca2fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
plugins/x11/vout_xvideo.c
plugins/x11/vout_xvideo.c
+12
-10
No files found.
plugins/x11/vout_xvideo.c
View file @
8715adf8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vout_xvideo.c: Xvideo video output display method
* vout_xvideo.c: Xvideo video output display method
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: vout_xvideo.c,v 1.3
0 2001/11/07 02:10:14 stef
Exp $
* $Id: vout_xvideo.c,v 1.3
1 2001/11/27 14:31:19 massiot
Exp $
*
*
* Authors: Shane Harper <shanegh@optusnet.com.au>
* Authors: Shane Harper <shanegh@optusnet.com.au>
* Vincent Seguin <seguin@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
...
@@ -943,11 +943,15 @@ static int XVideoCreateWindow( vout_thread_t *p_vout )
...
@@ -943,11 +943,15 @@ static int XVideoCreateWindow( vout_thread_t *p_vout )
X11ToggleMousePointer
(
p_vout
);
X11ToggleMousePointer
(
p_vout
);
}
}
XSync
(
p_vout
->
p_sys
->
p_display
,
False
);
return
(
0
);
return
(
0
);
}
}
static
void
XVideoDestroyWindow
(
vout_thread_t
*
p_vout
)
static
void
XVideoDestroyWindow
(
vout_thread_t
*
p_vout
)
{
{
XSync
(
p_vout
->
p_sys
->
p_display
,
False
);
XFreeGC
(
p_vout
->
p_sys
->
p_display
,
p_vout
->
p_sys
->
yuv_gc
);
XFreeGC
(
p_vout
->
p_sys
->
p_display
,
p_vout
->
p_sys
->
yuv_gc
);
XDestroyWindow
(
p_vout
->
p_sys
->
p_display
,
p_vout
->
p_sys
->
yuv_window
);
XDestroyWindow
(
p_vout
->
p_sys
->
p_display
,
p_vout
->
p_sys
->
yuv_window
);
...
@@ -992,12 +996,6 @@ static int XVideoCreateShmImage( Display* dpy, int xv_port,
...
@@ -992,12 +996,6 @@ static int XVideoCreateShmImage( Display* dpy, int xv_port,
0
,
0
);
0
,
0
);
p_shm_info
->
readOnly
=
False
;
p_shm_info
->
readOnly
=
False
;
#if 0
/* Mark the shm segment to be removed when there will be no more
* attachements, so it is automatic on process exit or after shmdt */
shmctl( p_shm_info->shmid, IPC_RMID, 0 );
#endif
if
(
!
XShmAttach
(
dpy
,
p_shm_info
)
)
if
(
!
XShmAttach
(
dpy
,
p_shm_info
)
)
{
{
intf_ErrMsg
(
"vout error: XShmAttach failed"
);
intf_ErrMsg
(
"vout error: XShmAttach failed"
);
...
@@ -1008,7 +1006,11 @@ static int XVideoCreateShmImage( Display* dpy, int xv_port,
...
@@ -1008,7 +1006,11 @@ static int XVideoCreateShmImage( Display* dpy, int xv_port,
/* Send image to X server. This instruction is required, since having
/* Send image to X server. This instruction is required, since having
* built a Shm XImage and not using it causes an error on XCloseDisplay */
* built a Shm XImage and not using it causes an error on XCloseDisplay */
XFlush
(
dpy
);
XSync
(
dpy
,
False
);
/* Mark the shm segment to be removed when there will be no more
* attachements, so it is automatic on process exit or after shmdt */
shmctl
(
p_shm_info
->
shmid
,
IPC_RMID
,
0
);
return
(
0
);
return
(
0
);
}
}
...
@@ -1029,12 +1031,12 @@ static void XVideoDestroyShmImage( vout_thread_t *p_vout, XvImage *p_xvimage,
...
@@ -1029,12 +1031,12 @@ static void XVideoDestroyShmImage( vout_thread_t *p_vout, XvImage *p_xvimage,
return
;
return
;
}
}
XSync
(
p_vout
->
p_sys
->
p_display
,
False
);
XShmDetach
(
p_vout
->
p_sys
->
p_display
,
p_shm_info
);
/* detach from server */
XShmDetach
(
p_vout
->
p_sys
->
p_display
,
p_shm_info
);
/* detach from server */
#if 0
#if 0
XDestroyImage( p_ximage ); /* XXX */
XDestroyImage( p_ximage ); /* XXX */
#endif
#endif
XFree
(
p_xvimage
);
shmctl
(
p_shm_info
->
shmid
,
IPC_RMID
,
0
);
if
(
shmdt
(
p_shm_info
->
shmaddr
)
)
/* detach shared memory from process */
if
(
shmdt
(
p_shm_info
->
shmaddr
)
)
/* detach shared memory from process */
{
{
...
...
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