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
4eed2dd0
Commit
4eed2dd0
authored
Mar 11, 2000
by
Jean-Marc Dressler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quelques ajustements pour beos. Les plugins ne compilent toujours pas.
parent
86054cbf
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
24 deletions
+33
-24
Makefile.in
Makefile.in
+13
-4
configure
configure
+1
-1
configure.in
configure.in
+1
-1
include/defs.h.in
include/defs.h.in
+2
-2
include/threads.h
include/threads.h
+13
-13
src/interface/main.c
src/interface/main.c
+2
-2
src/misc/plugins.c
src/misc/plugins.c
+1
-1
No files found.
Makefile.in
View file @
4eed2dd0
# Generated automatically from Makefile.in by configure.
################################################################################
################################################################################
# vlc (VideoLAN Client) main makefile
# vlc (VideoLAN Client) main makefile
# (c)1998 VideoLAN
# (c)1998 VideoLAN
...
@@ -87,10 +88,10 @@ PROGRAM_BUILD = `date` $(USER)
...
@@ -87,10 +88,10 @@ PROGRAM_BUILD = `date` $(USER)
DEFINE
+=
-DARCH_
$(
shell
echo
$(ARCH)
|
cut
-f1
-d
' '
)
DEFINE
+=
-DARCH_
$(
shell
echo
$(ARCH)
|
cut
-f1
-d
' '
)
DEFINE
+=
-DSYS_
$(SYS)
DEFINE
+=
-DSYS_
$(SYS)
DEFINE
+=
-DPLUGIN_PATH
=
"
\"
$(PREFIX)
/lib/videolan/vlc
\"
"
DEFINE
+=
-DPLUGIN_PATH
=
"
\"
$(PREFIX)
/lib/videolan/vlc
\"
"
DEFINE
+=
-DPROGRAM_VERSION
=
"
\"
@VLC_VERSION@
\"
"
DEFINE
+=
-DPROGRAM_VERSION
=
"
\"
0.1.99
\"
"
DEFINE
+=
-DPROGRAM_CODENAME
=
"
\"
@VLC_CODENAME@
\"
"
DEFINE
+=
-DPROGRAM_CODENAME
=
"
\"
Onatopp
\"
"
DEFINE
+=
-DPROGRAM_OPTIONS
=
"
\"
$(
shell
echo
$(PROGRAM_OPTIONS)
| tr 'A-Z' 'a-z'
)
\"
"
#
DEFINE += -DPROGRAM_OPTIONS="\"$(shell echo $(PROGRAM_OPTIONS) | tr 'A-Z' 'a-z')\""
DEFINE
+=
-DPROGRAM_BUILD
=
"
\"
$(PROGRAM_BUILD)
\"
"
#
DEFINE += -DPROGRAM_BUILD="\"$(PROGRAM_BUILD)\""
ifeq
($(DEBUG),1)
ifeq
($(DEBUG),1)
DEFINE
+=
-DDEBUG
DEFINE
+=
-DDEBUG
endif
endif
...
@@ -378,7 +379,11 @@ $(PLUGIN_OBJ): %.so: .dep/%.d
...
@@ -378,7 +379,11 @@ $(PLUGIN_OBJ): %.so: .dep/%.d
# audio plugins
# audio plugins
plugins/aout/aout_dummy.so plugins/aout/aout_dsp.so
:
%.so: %.c
plugins/aout/aout_dummy.so plugins/aout/aout_dsp.so
:
%.so: %.c
@
echo
"compiling
$*
.so from
$*
.c"
@
echo
"compiling
$*
.so from
$*
.c"
ifeq
($(SYS), BEOS)
@
$(CC)
$(CCFLAGS)
$(CFLAGS)
-nostart
-o
$@
$<
else
@
$(CC)
$(CCFLAGS)
$(CFLAGS)
-shared
-o
$@
$<
@
$(CC)
$(CCFLAGS)
$(CFLAGS)
-shared
-o
$@
$<
endif
plugins/aout/aout_esd.so
:
%.so: %.c
plugins/aout/aout_esd.so
:
%.so: %.c
@
echo
"compiling
$*
.so from
$*
.c"
@
echo
"compiling
$*
.so from
$*
.c"
...
@@ -392,7 +397,11 @@ endif
...
@@ -392,7 +397,11 @@ endif
plugins/intf/intf_dummy.so
plugins/vout/vout_dummy.so
\
plugins/intf/intf_dummy.so
plugins/vout/vout_dummy.so
\
plugins/intf/intf_fb.so plugins/vout/vout_fb.so
:
%.so: %.c
plugins/intf/intf_fb.so plugins/vout/vout_fb.so
:
%.so: %.c
@
echo
"compiling
$*
.so from
$*
.c"
@
echo
"compiling
$*
.so from
$*
.c"
ifeq
($(SYS), BEOS)
@
$(CC)
$(CCFLAGS)
$(CFLAGS)
-nostart
-o
$@
$<
else
@
$(CC)
$(CCFLAGS)
$(CFLAGS)
-shared
-o
$@
$<
@
$(CC)
$(CCFLAGS)
$(CFLAGS)
-shared
-o
$@
$<
endif
plugins/intf/intf_x11.so plugins/vout/vout_x11.so
:
%.so: %.c
plugins/intf/intf_x11.so plugins/vout/vout_x11.so
:
%.so: %.c
@
echo
"compiling
$*
.so from
$*
.c"
@
echo
"compiling
$*
.so from
$*
.c"
...
...
configure
View file @
4eed2dd0
...
@@ -2731,7 +2731,7 @@ fi
...
@@ -2731,7 +2731,7 @@ fi
done
done
for
ac_hdr
in
cthreads.h pthread.h kernel/sheduler.h kernel/OS.h
for
ac_hdr
in
cthreads.h pthread.h kernel/s
c
heduler.h kernel/OS.h
do
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
...
...
configure.in
View file @
4eed2dd0
...
@@ -50,7 +50,7 @@ AC_CHECK_HEADERS(dlfcn.h image.h)
...
@@ -50,7 +50,7 @@ AC_CHECK_HEADERS(dlfcn.h image.h)
AC_CHECK_HEADERS(arpa/inet.h net/if.h netinet/in.h sys/socket.h)
AC_CHECK_HEADERS(arpa/inet.h net/if.h netinet/in.h sys/socket.h)
dnl Check for threads library
dnl Check for threads library
AC_CHECK_HEADERS(cthreads.h pthread.h kernel/sheduler.h kernel/OS.h)
AC_CHECK_HEADERS(cthreads.h pthread.h kernel/s
c
heduler.h kernel/OS.h)
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_CONST
...
...
include/defs.h.in
View file @
4eed2dd0
...
@@ -73,8 +73,8 @@
...
@@ -73,8 +73,8 @@
/* Define if you have the <kernel/OS.h> header file. */
/* Define if you have the <kernel/OS.h> header file. */
#undef HAVE_KERNEL_OS_H
#undef HAVE_KERNEL_OS_H
/* Define if you have the <kernel/sheduler.h> header file. */
/* Define if you have the <kernel/s
c
heduler.h> header file. */
#undef HAVE_KERNEL_SHEDULER_H
#undef HAVE_KERNEL_S
C
HEDULER_H
/* Define if you have the <machine/soundcard.h> header file. */
/* Define if you have the <machine/soundcard.h> header file. */
#undef HAVE_MACHINE_SOUNDCARD_H
#undef HAVE_MACHINE_SOUNDCARD_H
...
...
include/threads.h
View file @
4eed2dd0
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#elif defined(HAVE_CTHREADS_H)
/* GNUMach */
#elif defined(HAVE_CTHREADS_H)
/* GNUMach */
#include <cthreads.h>
#include <cthreads.h>
#elif defined(HAVE_KERNEL_SHEDULER_H) && defined(HAVE_KERNEL_OS_H)
/* BeOS */
#elif defined(HAVE_KERNEL_S
C
HEDULER_H) && defined(HAVE_KERNEL_OS_H)
/* BeOS */
#include <kernel/OS.h>
#include <kernel/OS.h>
#include <kernel/scheduler.h>
#include <kernel/scheduler.h>
...
@@ -88,7 +88,7 @@ typedef struct s_condition {
...
@@ -88,7 +88,7 @@ typedef struct s_condition {
struct
cond_imp
*
implications
;
struct
cond_imp
*
implications
;
}
vlc_cond_t
;
}
vlc_cond_t
;
#elif defined(HAVE_KERNEL_SHEDULER_H) && defined(HAVE_KERNEL_OS_H)
#elif defined(HAVE_KERNEL_S
C
HEDULER_H) && defined(HAVE_KERNEL_OS_H)
typedef
thread_id
vlc_thread_t
;
typedef
thread_id
vlc_thread_t
;
...
@@ -152,7 +152,7 @@ static __inline__ int vlc_thread_create( vlc_thread_t *p_thread,
...
@@ -152,7 +152,7 @@ static __inline__ int vlc_thread_create( vlc_thread_t *p_thread,
*
p_thread
=
cthread_fork
(
(
cthread_fn_t
)
func
,
(
any_t
)
p_data
);
*
p_thread
=
cthread_fork
(
(
cthread_fn_t
)
func
,
(
any_t
)
p_data
);
return
(
0
);
return
(
0
);
#elif defined(HAVE_KERNEL_SHEDULER_H) && defined(HAVE_KERNEL_OS_H)
#elif defined(HAVE_KERNEL_S
C
HEDULER_H) && defined(HAVE_KERNEL_OS_H)
*
p_thread
=
spawn_thread
(
(
thread_func
)
func
,
psz_name
,
B_NORMAL_PRIORITY
,
p_data
);
*
p_thread
=
spawn_thread
(
(
thread_func
)
func
,
psz_name
,
B_NORMAL_PRIORITY
,
p_data
);
return
resume_thread
(
*
p_thread
);
return
resume_thread
(
*
p_thread
);
...
@@ -171,7 +171,7 @@ static __inline__ void vlc_thread_exit( void )
...
@@ -171,7 +171,7 @@ static __inline__ void vlc_thread_exit( void )
int
result
;
int
result
;
cthread_exit
(
&
result
);
cthread_exit
(
&
result
);
#elif defined(HAVE_KERNEL_SHEDULER_H) && defined(HAVE_KERNEL_OS_H)
#elif defined(HAVE_KERNEL_S
C
HEDULER_H) && defined(HAVE_KERNEL_OS_H)
exit_thread
(
0
);
exit_thread
(
0
);
#elif defined(HAVE_PTHREAD_H)
#elif defined(HAVE_PTHREAD_H)
...
@@ -188,7 +188,7 @@ static __inline__ void vlc_thread_join( vlc_thread_t thread )
...
@@ -188,7 +188,7 @@ static __inline__ void vlc_thread_join( vlc_thread_t thread )
#if defined(HAVE_CTHREADS_H)
#if defined(HAVE_CTHREADS_H)
cthread_join
(
thread
);
cthread_join
(
thread
);
#elif defined(HAVE_KERNEL_SHEDULER_H) && defined(HAVE_KERNEL_OS_H)
#elif defined(HAVE_KERNEL_S
C
HEDULER_H) && defined(HAVE_KERNEL_OS_H)
int32
exit_value
;
int32
exit_value
;
wait_for_thread
(
thread
,
&
exit_value
);
wait_for_thread
(
thread
,
&
exit_value
);
...
@@ -198,7 +198,7 @@ static __inline__ void vlc_thread_join( vlc_thread_t thread )
...
@@ -198,7 +198,7 @@ static __inline__ void vlc_thread_join( vlc_thread_t thread )
#endif
#endif
}
}
#if defined(HAVE_KERNEL_SHEDULER_H) && defined(HAVE_KERNEL_OS_H)
#if defined(HAVE_KERNEL_S
C
HEDULER_H) && defined(HAVE_KERNEL_OS_H)
/* lazy_init_mutex */
/* lazy_init_mutex */
static
__inline__
void
lazy_init_mutex
(
vlc_mutex_t
*
p_mutex
)
static
__inline__
void
lazy_init_mutex
(
vlc_mutex_t
*
p_mutex
)
{
{
...
@@ -223,7 +223,7 @@ static __inline__ int vlc_mutex_init( vlc_mutex_t *p_mutex )
...
@@ -223,7 +223,7 @@ static __inline__ int vlc_mutex_init( vlc_mutex_t *p_mutex )
mutex_init
(
p_mutex
);
mutex_init
(
p_mutex
);
return
(
0
);
return
(
0
);
#elif defined(HAVE_KERNEL_SHEDULER_H) && defined(HAVE_KERNEL_OS_H)
#elif defined(HAVE_KERNEL_S
C
HEDULER_H) && defined(HAVE_KERNEL_OS_H)
// check the arguments and whether it's already been initialized
// check the arguments and whether it's already been initialized
if
(
!
p_mutex
)
return
B_BAD_VALUE
;
if
(
!
p_mutex
)
return
B_BAD_VALUE
;
if
(
p_mutex
->
init
==
9999
)
return
EALREADY
;
if
(
p_mutex
->
init
==
9999
)
return
EALREADY
;
...
@@ -248,7 +248,7 @@ static __inline__ int vlc_mutex_lock( vlc_mutex_t *p_mutex )
...
@@ -248,7 +248,7 @@ static __inline__ int vlc_mutex_lock( vlc_mutex_t *p_mutex )
mutex_lock
(
p_mutex
);
mutex_lock
(
p_mutex
);
return
(
0
);
return
(
0
);
#elif defined(HAVE_KERNEL_SHEDULER_H) && defined(HAVE_KERNEL_OS_H)
#elif defined(HAVE_KERNEL_S
C
HEDULER_H) && defined(HAVE_KERNEL_OS_H)
status_t
err
;
status_t
err
;
if
(
!
p_mutex
)
return
B_BAD_VALUE
;
if
(
!
p_mutex
)
return
B_BAD_VALUE
;
...
@@ -274,7 +274,7 @@ static __inline__ int vlc_mutex_unlock( vlc_mutex_t *p_mutex )
...
@@ -274,7 +274,7 @@ static __inline__ int vlc_mutex_unlock( vlc_mutex_t *p_mutex )
mutex_unlock
(
p_mutex
);
mutex_unlock
(
p_mutex
);
return
(
0
);
return
(
0
);
#elif defined(HAVE_KERNEL_SHEDULER_H) && defined(HAVE_KERNEL_OS_H)
#elif defined(HAVE_KERNEL_S
C
HEDULER_H) && defined(HAVE_KERNEL_OS_H)
if
(
!
p_mutex
)
return
B_BAD_VALUE
;
if
(
!
p_mutex
)
return
B_BAD_VALUE
;
if
(
p_mutex
->
init
<
2000
)
return
B_NO_INIT
;
if
(
p_mutex
->
init
<
2000
)
return
B_NO_INIT
;
lazy_init_mutex
(
p_mutex
);
lazy_init_mutex
(
p_mutex
);
...
@@ -290,7 +290,7 @@ static __inline__ int vlc_mutex_unlock( vlc_mutex_t *p_mutex )
...
@@ -290,7 +290,7 @@ static __inline__ int vlc_mutex_unlock( vlc_mutex_t *p_mutex )
#endif
#endif
}
}
#if defined(HAVE_KERNEL_SHEDULER_H) && defined(HAVE_KERNEL_OS_H)
#if defined(HAVE_KERNEL_S
C
HEDULER_H) && defined(HAVE_KERNEL_OS_H)
/* lazy_init_cond */
/* lazy_init_cond */
static
__inline__
void
lazy_init_cond
(
vlc_cond_t
*
p_condvar
)
static
__inline__
void
lazy_init_cond
(
vlc_cond_t
*
p_condvar
)
{
{
...
@@ -320,7 +320,7 @@ static __inline__ int vlc_cond_init( vlc_cond_t *p_condvar )
...
@@ -320,7 +320,7 @@ static __inline__ int vlc_cond_init( vlc_cond_t *p_condvar )
return
(
0
);
return
(
0
);
#elif defined(HAVE_KERNEL_SHEDULER_H) && defined(HAVE_KERNEL_OS_H)
#elif defined(HAVE_KERNEL_S
C
HEDULER_H) && defined(HAVE_KERNEL_OS_H)
if
(
!
p_condvar
)
return
B_BAD_VALUE
;
if
(
!
p_condvar
)
return
B_BAD_VALUE
;
if
(
p_condvar
->
init
==
9999
)
return
EALREADY
;
if
(
p_condvar
->
init
==
9999
)
return
EALREADY
;
...
@@ -350,7 +350,7 @@ static __inline__ int vlc_cond_signal( vlc_cond_t *p_condvar )
...
@@ -350,7 +350,7 @@ static __inline__ int vlc_cond_signal( vlc_cond_t *p_condvar )
}
}
return
(
0
);
return
(
0
);
#elif defined(HAVE_KERNEL_SHEDULER_H) && defined(HAVE_KERNEL_OS_H)
#elif defined(HAVE_KERNEL_S
C
HEDULER_H) && defined(HAVE_KERNEL_OS_H)
status_t
err
=
B_OK
;
status_t
err
=
B_OK
;
if
(
!
p_condvar
)
return
B_BAD_VALUE
;
if
(
!
p_condvar
)
return
B_BAD_VALUE
;
...
@@ -388,7 +388,7 @@ static __inline__ int vlc_cond_wait( vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex
...
@@ -388,7 +388,7 @@ static __inline__ int vlc_cond_wait( vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex
condition_wait
(
(
condition_t
)
p_condvar
,
(
mutex_t
)
p_mutex
);
condition_wait
(
(
condition_t
)
p_condvar
,
(
mutex_t
)
p_mutex
);
return
(
0
);
return
(
0
);
#elif defined(HAVE_KERNEL_SHEDULER_H) && defined(HAVE_KERNEL_OS_H)
#elif defined(HAVE_KERNEL_S
C
HEDULER_H) && defined(HAVE_KERNEL_OS_H)
status_t
err
;
status_t
err
;
if
(
!
p_condvar
)
return
B_BAD_VALUE
;
if
(
!
p_condvar
)
return
B_BAD_VALUE
;
...
...
src/interface/main.c
View file @
4eed2dd0
...
@@ -520,8 +520,8 @@ static void Usage( int i_fashion )
...
@@ -520,8 +520,8 @@ static void Usage( int i_fashion )
*****************************************************************************/
*****************************************************************************/
static
void
Version
(
void
)
static
void
Version
(
void
)
{
{
intf_Msg
(
"vlc "
PROGRAM_VERSION
" "
PROGRAM_CODENAME
intf_Msg
(
"vlc "
" "
" ("
PROGRAM_BUILD
") ("
PROGRAM_OPTIONS
")
\n
"
" ("
") ("
")
\n
"
"Copyright 1996-2000 VideoLAN
\n
"
"Copyright 1996-2000 VideoLAN
\n
"
"This program comes with NO WARRANTY, to the extent permitted by law.
\n
"
"This program comes with NO WARRANTY, to the extent permitted by law.
\n
"
"You may redistribute it under the terms of the GNU General Public License;
\n
"
"You may redistribute it under the terms of the GNU General Public License;
\n
"
...
...
src/misc/plugins.c
View file @
4eed2dd0
...
@@ -60,7 +60,7 @@ int RequestPlugin ( plugin_id_t * p_plugin, char * psz_mask, char * psz_name )
...
@@ -60,7 +60,7 @@ int RequestPlugin ( plugin_id_t * p_plugin, char * psz_mask, char * psz_name )
*
p_plugin
=
dlopen
(
psz_plugin
,
RTLD_NOW
|
RTLD_GLOBAL
);
*
p_plugin
=
dlopen
(
psz_plugin
,
RTLD_NOW
|
RTLD_GLOBAL
);
#elif defined(HAVE_IMAGE_H)
#elif defined(HAVE_IMAGE_H)
*
p_plugin
=
load_add
on_image
(
psz_plugin
);
*
p_plugin
=
load_add
_on
(
psz_plugin
);
#endif
#endif
...
...
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