diff options
Diffstat (limited to 'src/video_out/video_out_xv.c')
-rw-r--r-- | src/video_out/video_out_xv.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; |