summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/video_out/video_out_xshm.c7
-rw-r--r--src/video_out/video_out_xv.c7
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;