diff options
author | Bastien Nocera <hadess@users.sourceforge.net> | 2003-02-22 16:56:01 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@users.sourceforge.net> | 2003-02-22 16:56:01 +0000 |
commit | 5bd2236543a673843eecf47c5bbd1b6b69cbb6df (patch) | |
tree | 6cea84cee6beeb56195e62fc8d7d06b9098da83a | |
parent | fb08839f69c907da4df631b04acbeadead66acbb (diff) | |
download | xine-lib-5bd2236543a673843eecf47c5bbd1b6b69cbb6df.tar.gz xine-lib-5bd2236543a673843eecf47c5bbd1b6b69cbb6df.tar.bz2 |
- we need to init X thread safe libraries, the front-end might not have
CVS patchset: 4255
CVS date: 2003/02/22 16:56:01
-rw-r--r-- | src/video_out/video_out_xshm.c | 7 | ||||
-rw-r--r-- | src/video_out/video_out_xv.c | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/video_out/video_out_xshm.c b/src/video_out/video_out_xshm.c index ee963c0bb..fc95264e0 100644 --- a/src/video_out/video_out_xshm.c +++ b/src/video_out/video_out_xshm.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_out_xshm.c,v 1.106 2003/02/03 17:24:47 esnel Exp $ + * $Id: video_out_xshm.c,v 1.107 2003/02/22 16:56:01 hadess Exp $ * * video_out_xshm.c, X11 shared memory extension interface for xine * @@ -1092,6 +1092,11 @@ static vo_driver_t *xshm_open_plugin (video_driver_class_t *class_gen, const voi int cpu_byte_order; XColor dummy; + if (!XInitThreads()) { + printf ("video_out_xshm: No thread-safe X libraries available.\n"); + return NULL; + } + this = malloc (sizeof (xshm_driver_t)); if (!this) { diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c index 1731bc1c8..622b61f17 100644 --- a/src/video_out/video_out_xv.c +++ b/src/video_out/video_out_xv.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_out_xv.c,v 1.157 2003/02/03 00:24:13 miguelfreitas Exp $ + * $Id: video_out_xv.c,v 1.158 2003/02/22 16:56:01 hadess Exp $ * * video_out_xv.c, X11 video extension interface for xine * @@ -1362,6 +1362,11 @@ static void *init_class (xine_t *xine, void *visual_gen) { * check for Xvideo support */ + if (!XInitThreads()) { + printf ("video_out_xv: No thread-safe X libraries available.\n"); + return NULL; + } + if (Success != XvQueryExtension(display,&ver,&rel,&req,&ev,&err)) { printf ("video_out_xv: Xv extension not present.\n"); return NULL; |