Quoting Dave Yeo (2014-11-29 06:11:20)
> On 11/23/14 12:31 PM, Anton Khirnov wrote:
> > Also add no-op fallbacks when threading is disabled.
> >
> > This helps keeping the code clean if Libav is compiled for targets
> > without threading. Since we assume that no threads of any kind are used
> > in such configurations, doing nothing is ok by definition.
> >
> > Based on a patch by wm4<[email protected]>.
> > ---
> >   libavutil/thread.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
> >   1 file changed, 50 insertions(+)
> >   create mode 100644 libavutil/thread.h
> >
> > diff --git a/libavutil/thread.h b/libavutil/thread.h
> > new file mode 100644
> > index 0000000..f025d1d
> > --- /dev/null
> > +++ b/libavutil/thread.h
> > @@ -0,0 +1,50 @@
> > +/*
> > + * This file is part of Libav.
> > + *
> > + * Libav is free software; you can redistribute it and/or
> > + * modify it under the terms of the GNU Lesser General Public
> > + * License as published by the Free Software Foundation; either
> > + * version 2.1 of the License, or (at your option) any later version.
> > + *
> > + * Libav is distributed in the hope that it will be useful,
> > + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
> > + * Lesser General Public License for more details.
> > + *
> > + * You should have received a copy of the GNU Lesser General Public
> > + * License along with Libav; if not, write to the Free Software
> > + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 
> > 02110-1301 USA
> > + */
> > +
> > +#ifndef AVUTIL_THREAD_H
> > +#define AVUTIL_THREAD_H
> > +
> > +#include "config.h"
> > +
> > +#if HAVE_PTHREADS || HAVE_W32THREADS
> > +
> > +#if HAVE_PTHREADS
> > +#include <pthread.h>
> > +#else
> > +#include <compat/w32pthreads.h>
> > +#endif
> 
> Shouldn't that be
> #include "compat/w32pthreads.h" ?

Indeed it should. Nice catch, will fix.

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to