[MPlayer-cvslog] r32988 - in trunk: configure libmpcodecs/dec_teletext.c

reimar subversion at mplayerhq.hu
Mon Feb 28 18:51:02 CET 2011


Author: reimar
Date: Mon Feb 28 18:51:02 2011
New Revision: 32988

Log:
Fix compilation when pthreads are not available.

Modified:
   trunk/configure
   trunk/libmpcodecs/dec_teletext.c

Modified: trunk/configure
==============================================================================
--- trunk/configure	Mon Feb 28 15:47:17 2011	(r32987)
+++ trunk/configure	Mon Feb 28 18:51:02 2011	(r32988)
@@ -3598,7 +3598,7 @@ if test "$_pthreads" = yes ; then
   extra_cflags="$extra_cflags $THREAD_CFLAGS"
 else
   res_comment="v4l, v4l2, ao_nas, win32 loader disabled"
-  def_pthreads='#undef HAVE_PTHREADS'
+  def_pthreads='#define HAVE_PTHREADS 0'
   _nas=no ; _tv_v4l1=no ; _tv_v4l2=no
   mingw32 || _win32dll=no
 fi

Modified: trunk/libmpcodecs/dec_teletext.c
==============================================================================
--- trunk/libmpcodecs/dec_teletext.c	Mon Feb 28 15:47:17 2011	(r32987)
+++ trunk/libmpcodecs/dec_teletext.c	Mon Feb 28 18:51:02 2011	(r32988)
@@ -88,7 +88,7 @@
 #include <math.h>
 #include <stdio.h>
 
-#ifdef HAVE_PTHREADS
+#if HAVE_PTHREADS
 // pthreads are needed for async updates from v4l(2)
 // FIXME: try to avoid using pthread calls when running only a single
 // thread as e.g. with DVB teletext
@@ -148,7 +148,7 @@ typedef struct {
     int pll_fixed;
     /// vbi stream properties (buffer size,bytes per line, etc)
     tt_stream_props* ptsp;
-#ifdef HAVE_PTHREADS
+#if HAVE_PTHREADS
     pthread_mutex_t buffer_mutex;
 #endif
 


More information about the MPlayer-cvslog mailing list