Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
23a4ece1
Commit
23a4ece1
authored
May 15, 2001
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* FreeBSD pthread fixes.
parent
501cb1ba
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
34 deletions
+52
-34
ChangeLog
ChangeLog
+10
-0
configure
configure
+23
-23
configure.in
configure.in
+11
-9
plugins/imdct/ac3_imdct_common.c
plugins/imdct/ac3_imdct_common.c
+3
-1
src/interface/main.c
src/interface/main.c
+5
-1
No files found.
ChangeLog
View file @
23a4ece1
...
...
@@ -3,6 +3,16 @@
#===================#
HEAD
*
FreeBSD
pthread
fixes
.
*
AC3
IMDCT
and
downmix
functions
are
now
in
plugins
,
--
imdct
and
--
downmix
options
added
.
*
Bugfixes
,
cleanings
in
gtk
.
*
Initialization
bugfixes
in
input_dvd
.
*
Added
a
b_stopped
flag
to
interface
playlist
to
have
a
stop
function
in
interface
plugins
.
*
Updated
the
Gtk
+
interface
so
that
it
has
the
same
features
as
the
Gnome
one
.
*
Beginning
of
SSE
/
3
DNow
! support for imdct and downmix.
*
Ported
alsa
interface
for
alsa
0.9
beta
*
Fixed
a
deadlock
in
spudec
.
*
Added
SPU
cropping
.
...
...
configure
View file @
23a4ece1
...
...
@@ -2388,26 +2388,9 @@ else
echo
"
$ac_t
""no"
1>&6
fi
echo
$ac_n
"checking for old style FreeBSD -pthread flag""...
$ac_c
"
1>&6
echo
"configure:2393: checking for old style FreeBSD -pthread flag"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line 2395 "configure"
#include "confdefs.h"
#if defined(__FreeBSD_cc_version) && __FreeBSD_cc_version <= 500001
yes
#endif
EOF
if
(
eval
"
$ac_cpp
conftest.
$ac_ext
"
)
2>&5 |
egrep
"yes"
>
/dev/null 2>&1
;
then
rm
-rf
conftest
*
echo
"
$ac_t
""yes"
1>&6
DEFINE
=
"
${
DEFINE
}
-D_THREAD_SAFE"
LIB
=
"
${
LIB
}
-pthread"
else
rm
-rf
conftest
*
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for pthread_create in -lpthread""...
$ac_c
"
1>&6
echo
"configure:2411: checking for pthread_create in -lpthread"
>
&5
echo
$ac_n
"checking for pthread_create in -lpthread""...
$ac_c
"
1>&6
echo
"configure:2394: checking for pthread_create in -lpthread"
>
&5
ac_lib_var
=
`
echo
pthread
'_'
pthread_create |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -2415,7 +2398,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lpthread
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 24
19
"configure"
#line 24
02
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -2426,7 +2409,7 @@ int main() {
pthread_create()
; return 0; }
EOF
if
{
(
eval echo
configure:24
30
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:24
13
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -2444,10 +2427,27 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
LIB
=
"
${
LIB
}
-lpthread"
else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for old style FreeBSD -pthread flag""...
$ac_c
"
1>&6
echo
"configure:2432: checking for old style FreeBSD -pthread flag"
>
&5
cat
>
conftest.
$ac_ext
<<
EOF
#line 2434 "configure"
#include "confdefs.h"
#if defined(__FreeBSD_cc_version) && __FreeBSD_cc_version <= 500001
yes
#endif
EOF
if
(
eval
"
$ac_cpp
conftest.
$ac_ext
"
)
2>&5 |
egrep
"yes"
>
/dev/null 2>&1
;
then
rm
-rf
conftest
*
echo
"
$ac_t
""yes"
1>&6
DEFINE
=
"
${
DEFINE
}
-D_THREAD_SAFE"
LIB
=
"
${
LIB
}
-pthread"
else
rm
-rf
conftest
*
echo
"
$ac_t
""no"
1>&6
fi
rm
-f
conftest
*
fi
rm
-f
conftest
*
echo
$ac_n
"checking for thread_create in -lthreads""...
$ac_c
"
1>&6
echo
"configure:2454: checking for thread_create in -lthreads"
>
&5
...
...
configure.in
View file @
23a4ece1
...
...
@@ -61,15 +61,17 @@ AC_FUNC_MMAP
AC_TYPE_SIGNAL
AC_CHECK_LIB(dl,dlopen,LIB="${LIB} -ldl")
AC_CHECK_LIB(m,pow,LIB_YUV="${LIB_YUV} -lm")
AC_MSG_CHECKING(for old style FreeBSD -pthread flag)
AC_EGREP_CPP(yes,
AC_CHECK_LIB(pthread,pthread_create,
LIB="${LIB} -lpthread",
AC_MSG_CHECKING(for old style FreeBSD -pthread flag)
AC_EGREP_CPP(yes,
[#if defined(__FreeBSD_cc_version) && __FreeBSD_cc_version <= 500001
yes
#endif
],
AC_MSG_RESULT(yes)
#endif],
AC_MSG_RESULT(yes)
DEFINE="${DEFINE} -D_THREAD_SAFE" LIB="${LIB} -pthread",
AC_MSG_RESULT(no)
AC_CHECK_LIB(pthread,pthread_create,LIB="${LIB} -lpthread"))
AC_MSG_RESULT(no)))
AC_CHECK_LIB(threads,thread_create,LIB="${LIB} -lthreads")
CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
...
...
plugins/imdct/ac3_imdct_common.c
View file @
23a4ece1
...
...
@@ -2,7 +2,7 @@
* ac3_imdct_common.c: common ac3 DCT functions
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: ac3_imdct_common.c,v 1.
1 2001/05/15 16:19:42
sam Exp $
* $Id: ac3_imdct_common.c,v 1.
2 2001/05/15 19:36:27
sam Exp $
*
* Authors: Renaud Dartus <reno@videolan.org>
* Aaron Holtzman <aholtzma@engr.uvic.ca>
...
...
@@ -109,6 +109,8 @@ static const int pm64[64] =
7
,
23
,
39
,
55
,
15
,
31
,
47
,
63
};
void
_M
(
fft_64p
)
(
complex_t
*
a
);
void
_M
(
imdct_do_256
)
(
imdct_t
*
p_imdct
,
float
data
[],
float
delay
[])
{
int
i
,
j
,
k
;
...
...
src/interface/main.c
View file @
23a4ece1
...
...
@@ -4,7 +4,7 @@
* and spawn threads.
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: main.c,v 1.9
5 2001/05/15 16:19:42
sam Exp $
* $Id: main.c,v 1.9
6 2001/05/15 19:36:27
sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -47,6 +47,10 @@
# include <mach/bootstrap.h>
#endif
#ifndef WIN32
#include <netinet/in.h>
/* BSD: struct in_addr */
#endif
#include <unistd.h>
#include <errno.h>
/* ENOMEM */
#include <stdlib.h>
/* getenv(), strtol(), */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment