Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
41e5bcda
Commit
41e5bcda
authored
Oct 31, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unmaintained BeOS support
parent
242b536f
Changes
24
Show whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
30 additions
and
541 deletions
+30
-541
INSTALL
INSTALL
+3
-3
Makefile.am
Makefile.am
+0
-26
bootstrap
bootstrap
+0
-5
configure.ac
configure.ac
+11
-47
doc/release-howto.txt
doc/release-howto.txt
+0
-8
extras/contrib/README
extras/contrib/README
+3
-3
include/vlc_network.h
include/vlc_network.h
+0
-2
modules/access/screen/Modules.am
modules/access/screen/Modules.am
+0
-4
modules/access/screen/beos.cpp
modules/access/screen/beos.cpp
+0
-123
modules/access/screen/screen.h
modules/access/screen/screen.h
+1
-1
modules/misc/freetype.c
modules/misc/freetype.c
+0
-3
modules/misc/lua/vlc.c
modules/misc/lua/vlc.c
+2
-2
po/POTFILES.in
po/POTFILES.in
+0
-2
share/Makefile.am
share/Makefile.am
+1
-2
share/vlc_beos.rsrc
share/vlc_beos.rsrc
+0
-0
src/Makefile.am
src/Makefile.am
+0
-12
src/config/file.c
src/config/file.c
+1
-1
src/libvlc-module.c
src/libvlc-module.c
+3
-4
src/misc/beos_specific.cpp
src/misc/beos_specific.cpp
+0
-252
src/misc/update.c
src/misc/update.c
+0
-2
src/modules/os.c
src/modules/os.c
+4
-34
src/network/poll.c
src/network/poll.c
+0
-2
src/network/rootbind.c
src/network/rootbind.c
+1
-1
src/network/udp.c
src/network/udp.c
+0
-2
No files found.
INSTALL
View file @
41e5bcda
INSTALL file for the VLC media player
More extensive information for *nix, Windows
, Mac OS X and BeOS
users can be
More extensive information for *nix, Windows
and Mac OS X
users can be
found here: http://developers.videolan.org/vlc/
Bootstrapping VLC
...
...
@@ -25,8 +25,8 @@ symbols:
We recommend using GCC to build VLC, though some people reported success
with the Intel C compiler (version 8) as well. GCC version 3.3 or higher is
required. On older systems (e.g. FreeBSD 4.x
, BeOS), please select a more
recent
version manually by setting the CC and CXX environment variables
required. On older systems (e.g. FreeBSD 4.x
), please select a more recent
version manually by setting the CC and CXX environment variables
appropriately while running the ./configure shell script.
...
...
Makefile.am
View file @
41e5bcda
...
...
@@ -352,32 +352,6 @@ doc:
.PHONY
:
libvlc core doc
if
HAVE_BEOS
noinst_DATA
=
vlc-bundle
vlc-bundle
:
vlc
rm
-Rf
$(top_builddir)
/vlc-bundle
;
mkdir
-p
$(top_builddir)
/vlc-bundle
cp
$(top_builddir)
/vlc
$(top_builddir)
/vlc-bundle/
xres
-o
$(top_builddir)
/vlc-bundle/vlc
$(srcdir)
/share/vlc_beos.rsrc
for
i
in
""
`
$(VLC_CONFIG)
--target
plugin
`
;
do
\
if
test
-n
"
$$
i"
;
then
\
mkdir
-p
$(top_builddir)
/vlc-bundle/plugins
;
\
cp
"
$$
i
$(LIBEXT)
"
$(top_builddir)
/vlc-bundle/plugins/
;
\
fi
;
\
done
if
test
-d
$(CONTRIB_DIR)
/vlc-lib
;
then
\
mkdir
-p
$(top_builddir)
/vlc-bundle/lib
;
\
for
i
in
$(CONTRIB_DIR)
/vlc-lib/
*
.so
;
do
\
cp
$$
i
$(top_builddir)
/vlc-bundle/lib/
;
\
done
;
\
fi
cat
$(top_srcdir)
/po/LINGUAS |
while
read
i
;
do
\
mkdir
-p
"
$(top_builddir)
/vlc-bundle/share/locale/
$$
i/LC_MESSAGES"
;
\
cp
"
$(top_builddir)
/po/
$$
i.gmo"
\
"
$(top_builddir)
/vlc-bundle/share/locale/
$$
i/LC_MESSAGES/vlc.mo"
||
true
;
\
done
find
$(top_builddir)
/vlc-bundle
-type
f
-exec
mimeset
-f
"{}"
\;
endif
###############################################################################
# Building aliases
###############################################################################
...
...
bootstrap
View file @
41e5bcda
...
...
@@ -41,11 +41,6 @@ if test -d extras/contrib/build/bin; then
DYLD_LIBRARY_PATH
=
./extras/contrib/build/lib:
$DYLD_LIBRARY_PATH
export
LD_LIBRARY_PATH
export
DYLD_LIBRARY_PATH
elif
test
".
`
uname
-s
`
"
=
".BeOS"
;
then
LIBRARY_PATH
=
./extras/contrib/build/lib:
$LIBRARY_PATH
BELIBRARIES
=
./extras/contrib/build/lib:
$BELIBRARIES
export
LIBRARY_PATH
export
BELIBRARIES
fi
elif
test
".
`
uname
-s
`
"
=
".Darwin"
;
then
set
+x
...
...
configure.ac
View file @
41e5bcda
...
...
@@ -138,9 +138,6 @@ AS_IF([test "${with_contrib}" != "no"],[
if test "${SYS}" = "darwin"; then
export LD_LIBRARY_PATH="${CONTRIB_DIR}/lib:$LD_LIBRARY_PATH"
export DYLD_LIBRARY_PATH="${CONTRIB_DIR}/lib:$DYLD_LIBRARY_PATH"
elif test "${SYS}" = "beos"; then
export LIBRARY_PATH="${CONTRIB_DIR}/lib:$LIBRARY_PATH"
export BELIBRARIES="${CONTRIB_DIR}/lib:$BELIBRARIES"
fi
],[
AC_MSG_RESULT([no])
...
...
@@ -362,27 +359,10 @@ case "${host_os}" in
hpux*)
SYS=hpux
;;
beos)
SYS=beos
CFLAGS_save="${CFLAGS_save} -Wno-multichar"; CFLAGS="${CFLAGS_save}"
CXXFLAGS_save="${CXXFLAGS_save} -Wno-multichar"; CXXFLAGS="${CXXFLAGS_save}"
VLC_ADD_CXXFLAGS([beos],[])
VLC_ADD_LIBS([vlc libvlccore logger],[-lbe])
VLC_ADD_LIBS([dvdnav dvdread],[-ldl])
VLC_ADD_LIBS([filesystem],[-lpoll])
LDFLAGS_save="${LDFLAGS_save} -lintl"; LDFLAGS="${LDFLAGS_save}"
dnl Check for BONE
if test -f /boot/beos/system/lib/libbind.so; then
VLC_ADD_LIBS([filesystem access_ftp access_mms access_output_udp netsync sap libvlccore growl_udp],[-lbind -lsocket])
else
VLC_ADD_LIBS([filesystem access_ftp access_mms access_output_udp netsync sap libvlccore growl_udp],[-lnet])
fi
;;
*)
SYS="${host_os}"
;;
esac
AM_CONDITIONAL(HAVE_BEOS, test "${SYS}" = "beos")
AM_CONDITIONAL(HAVE_DARWIN, test "${SYS}" = "darwin")
AM_CONDITIONAL(HAVE_LINUX, [test "${SYS}" = "linux"])
AM_CONDITIONAL(HAVE_WIN32, test "${SYS}" = "mingw32")
...
...
@@ -722,14 +702,6 @@ if test "${ac_cv_have_plugins}" = "no"; then
fi
fi
# BeOS style
if test "${ac_cv_have_plugins}" = "no"; then
AC_CHECK_HEADERS(image.h)
AC_CHECK_FUNCS(load_add_on,
[AC_DEFINE(HAVE_DL_BEOS, 1, [Define if you have the BeOS dl])
ac_cv_have_plugins=yes])
fi
# Only test for dlopen() if the others didn't work
LIBDL=""
if test "${ac_cv_have_plugins}" = "no" -o "${SYS}" = "darwin"; then
...
...
@@ -1043,16 +1015,12 @@ if test "${ac_cv_c_fast_math}" != "no"; then
fi
dnl Check for -funroll-loops
dnl Disabled on BeOS because BeOS' gcc is buggy and may crash with it
if test "${SYS}" != "beos"
then
AC_CACHE_CHECK([if \$CC accepts -funroll-loops],
AC_CACHE_CHECK([if \$CC accepts -funroll-loops],
[ac_cv_c_unroll_loops],
[CFLAGS="${CFLAGS_save} -funroll-loops"
AC_TRY_COMPILE([],,ac_cv_c_unroll_loops=yes, ac_cv_c_unroll_loops=no)])
if test "${ac_cv_c_unroll_loops}" != "no"; then
if test "${ac_cv_c_unroll_loops}" != "no"; then
CFLAGS_OPTIM_SPEED="${CFLAGS_OPTIM_SPEED} -funroll-loops"
fi
fi
dnl Check for -fomit-frame-pointer
...
...
@@ -1859,7 +1827,7 @@ dnl
dnl dvdread module: check for libdvdread
dnl
dnl prepend -ldvdcss on OS that need it
AS_CASE(["${SYS}"], [mingw32|darwin
|beos
], [VLC_ADD_LIBS([dvdread], [-ldvdcss])])
AS_CASE(["${SYS}"], [mingw32|darwin], [VLC_ADD_LIBS([dvdread], [-ldvdcss])])
PKG_ENABLE_MODULES_VLC([DVDREAD], [], [dvdread], [dvdread input module], [auto])
dnl
...
...
@@ -1870,7 +1838,7 @@ AC_ARG_ENABLE(dvdnav,
if test "${enable_dvdnav}" != "no"
then
dnl prepend -ldvdcss on OS that need it
AS_CASE(["${SYS}"], [mingw32|darwin
|beos
], [VLC_ADD_LIBS([dvdnav], [-ldvdcss])])
AS_CASE(["${SYS}"], [mingw32|darwin], [VLC_ADD_LIBS([dvdnav], [-ldvdcss])])
DVDNAV_PATH="${PATH}"
AC_ARG_WITH(dvdnav-config-path,
...
...
@@ -2295,10 +2263,6 @@ if test "${enable_screen}" != "no"; then
VLC_ADD_LIBS([screen],[-lgdi32])
elif test "${SYS}" = "mingwce"; then
CPPFLAGS="${CPPFLAGS_save}"
elif test "${SYS}" = "beos"; then
VLC_ADD_PLUGIN([screen])
VLC_ADD_CXXFLAGS([screen],[])
VLC_ADD_LIBS([screen],[-lbe])
fi
fi
...
...
@@ -3681,9 +3645,9 @@ dnl Skins2 module
dnl
AC_ARG_ENABLE(skins2,
[AS_HELP_STRING([--enable-skins2],[Skins2 interface module (default
enabled except on MacOSX
, BeOS
and WinCE)])])
enabled except on MacOSX and WinCE)])])
if test "${enable_skins2}" != "no" ||
(test "${SYS}" != "darwin" &&
test "${SYS}" != "beos" &&
(test "${SYS}" != "darwin" &&
test "${SYS}" != "mingwce" && test "${enable_skins2}" == "yes"); then
dnl test for the required libraries
...
...
@@ -3721,7 +3685,7 @@ if test "${enable_skins2}" != "no" ||
fi fi fi
fi
AM_CONDITIONAL(BUILD_SKINS, [test "${enable_skins2}" = "yes" ||
(test "${SYS}" != "darwin" &&
test "${SYS}" != "beos" &&
(test "${SYS}" != "darwin" &&
test "${SYS}" != "mingwce" && test "${enable_skins2}" != "no")])
dnl
...
...
doc/release-howto.txt
View file @
41e5bcda
...
...
@@ -32,14 +32,6 @@
- Put the relevant win32 contrib package
- Update developers.v.o/vlc and www.v.o/vlc/download-sources.html
* BeOS Packages
Information on building: http://developers.videolan.org/vlc/beos-compile.html
Configure with --enable-update-check
Build in the "buildbeos" chroot on altair.
# add the .zip files to /opt/ftp/pub/videolan/testing/vlc-X.X.X/beos/
generate md5 plus SHA1 hashes and gpg signature of these files
(c.f. Tarballs)
* Win32 Packages
make the packages using the nightly builds configure/options/... , don't
forget --enable-update-check
...
...
extras/contrib/README
View file @
41e5bcda
This is the contrib build system for VLC Media Player. It has been
primarily developed for Mac, it has been adapted for
BeOs and w
in32.
primarily developed for Mac, it has been adapted for
W
in32.
It would be not too difficult to extend it to other sytem.
To use it, first in the contrib directory, type :
./bootstrap
You can specify an argument to cross compile, for example:
./bootstrap i586-
pc-beos
This will look for a i586-
pc-beos
-gcc cross compiler. Default is to
./bootstrap i586-
mingw32msvc
This will look for a i586-
mingw32msvc
-gcc cross compiler. Default is to
build natively.
Bootstrap generates your default contrib configuration and puts it in a file
...
...
include/vlc_network.h
View file @
41e5bcda
...
...
@@ -70,8 +70,6 @@ struct msghdr
# endif
# ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
# elif defined( SYS_BEOS )
# include <net/netdb.h>
# endif
# include <netdb.h>
# define net_errno errno
...
...
modules/access/screen/Modules.am
View file @
41e5bcda
if HAVE_WIN32
screen_extra = win32.c
else
if HAVE_BEOS
screen_extra = beos.cpp
else
if HAVE_DARWIN
screen_extra = mac.c
endif
endif
endif
SOURCES_screen = \
screen.c \
screen.h \
...
...
modules/access/screen/beos.cpp
deleted
100644 → 0
View file @
242b536f
/*****************************************************************************
* beos.cpp: Screen capture module.
*****************************************************************************
* Copyright (C) 2004 the VideoLAN team
* $Id$
*
* Authors: Eric Petit <titer@m0k.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc_common.h>
#include <Screen.h>
#include <Bitmap.h>
extern
"C"
{
#include "screen.h"
struct
screen_data_t
{
BScreen
*
p_screen
;
BBitmap
*
p_bitmap
;
};
int
screen_InitCapture
(
demux_t
*
p_demux
)
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
screen_data_t
*
p_data
;
BRect
rect
;
int
i_chroma
;
int
i_bits_per_pixel
;
p_sys
->
p_data
=
p_data
=
(
screen_data_t
*
)
malloc
(
sizeof
(
screen_data_t
)
);
p_data
->
p_screen
=
new
BScreen
();
rect
=
p_data
->
p_screen
->
Frame
();
p_data
->
p_bitmap
=
new
BBitmap
(
rect
,
p_data
->
p_screen
->
ColorSpace
()
);
switch
(
p_data
->
p_screen
->
ColorSpace
()
)
{
case
B_RGB32
:
i_chroma
=
VLC_CODEC_RGB32
;
i_bits_per_pixel
=
32
;
break
;
case
B_RGB16
:
i_chroma
=
VLC_CODEC_RGB16
;
i_bits_per_pixel
=
16
;
break
;
default:
msg_Err
(
p_demux
,
"screen depth %i unsupported"
,
p_data
->
p_screen
->
ColorSpace
()
);
delete
p_data
->
p_bitmap
;
delete
p_data
->
p_screen
;
free
(
p_data
);
return
VLC_EGENERIC
;
}
es_format_Init
(
&
p_sys
->
fmt
,
VIDEO_ES
,
i_chroma
);
p_sys
->
fmt
.
video
.
i_width
=
(
int
)
rect
.
Width
();
p_sys
->
fmt
.
video
.
i_height
=
(
int
)
rect
.
Height
();
p_sys
->
fmt
.
video
.
i_bits_per_pixel
=
i_bits_per_pixel
;
return
VLC_SUCCESS
;
}
int
screen_CloseCapture
(
demux_t
*
p_demux
)
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
screen_data_t
*
p_data
=
p_sys
->
p_data
;
delete
p_data
->
p_bitmap
;
delete
p_data
->
p_screen
;
free
(
p_data
);
return
VLC_SUCCESS
;
}
block_t
*
screen_Capture
(
demux_t
*
p_demux
)
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
screen_data_t
*
p_data
=
p_sys
->
p_data
;
block_t
*
p_block
;
p_block
=
block_New
(
p_demux
,
p_sys
->
fmt
.
video
.
i_width
*
p_sys
->
fmt
.
video
.
i_height
*
p_sys
->
fmt
.
video
.
i_bits_per_pixel
/
8
);
p_data
->
p_screen
->
ReadBitmap
(
p_data
->
p_bitmap
);
for
(
unsigned
i
=
0
;
i
<
p_sys
->
fmt
.
video
.
i_height
;
i
++
)
{
memcpy
(
p_block
->
p_buffer
+
i
*
p_sys
->
fmt
.
video
.
i_width
*
p_sys
->
fmt
.
video
.
i_bits_per_pixel
/
8
,
(
uint8_t
*
)
p_data
->
p_bitmap
->
Bits
()
+
i
*
p_data
->
p_bitmap
->
BytesPerRow
(),
p_sys
->
fmt
.
video
.
i_width
*
p_sys
->
fmt
.
video
.
i_bits_per_pixel
/
8
);
}
return
p_block
;
}
}
/* extern "C" */
modules/access/screen/screen.h
View file @
41e5bcda
...
...
@@ -26,7 +26,7 @@
#include <vlc_access.h>
#include <vlc_demux.h>
#if !defined( HAVE_
BEOS ) && !defined( HAVE_
DARWIN )
#if !defined( HAVE_DARWIN )
# define SCREEN_SUBSCREEN
# define SCREEN_MOUSE
#endif
...
...
modules/misc/freetype.c
View file @
41e5bcda
...
...
@@ -57,9 +57,6 @@
#ifdef __APPLE__
#define DEFAULT_FONT "/Library/Fonts/Arial Black.ttf"
#define FC_DEFAULT_FONT "Arial Black"
#elif defined( SYS_BEOS )
#define DEFAULT_FONT "/boot/beos/etc/fonts/ttfonts/Swiss721.ttf"
#define FC_DEFAULT_FONT "Swiss"
#elif defined( WIN32 )
#define DEFAULT_FONT ""
/* Default font found at run-time */
#define FC_DEFAULT_FONT "Arial"
...
...
modules/misc/lua/vlc.c
View file @
41e5bcda
...
...
@@ -225,7 +225,7 @@ int vlclua_dir_list( vlc_object_t *p_this, const char *luadirname,
i
++
;
free
(
datadir
);
#if !(defined(__APPLE__) || defined(
SYS_BEOS) || defined(
WIN32))
#if !(defined(__APPLE__) || defined(WIN32))
if
(
likely
(
asprintf
(
&
ppsz_dir_list
[
i
],
"%s"
DIR_SEP
"lua"
DIR_SEP
"%s"
,
config_GetLibDir
(),
luadirname
)
!=
-
1
)
)
i
++
;
...
...
@@ -238,7 +238,7 @@ int vlclua_dir_list( vlc_object_t *p_this, const char *luadirname,
psz_datapath
,
luadirname
)
!=
-
1
)
)
i
++
;
#if defined(__APPLE__)
|| defined(SYS_BEOS)
#if defined(__APPLE__)
if
(
likely
(
asprintf
(
&
ppsz_dir_list
[
i
],
"%s"
DIR_SEP
"share"
DIR_SEP
"lua"
DIR_SEP
"%s"
,
psz_datapath
,
luadirname
)
!=
-
1
)
)
...
...
po/POTFILES.in
View file @
41e5bcda
...
...
@@ -126,7 +126,6 @@ src/libvlc.c
src/libvlc.h
src/libvlc-module.c
src/misc/action.c
src/misc/beos_specific.cpp
src/misc/block.c
src/misc/cpu.c
src/misc/darwin_specific.c
...
...
@@ -265,7 +264,6 @@ modules/access/rtsp/real_sdpplin.c
modules/access/rtsp/real_sdpplin.h
modules/access/rtsp/rtsp.c
modules/access/rtsp/rtsp.h
modules/access/screen/beos.cpp
modules/access/screen/mac.c
modules/access/screen/screen.c
modules/access/screen/screen.h
...
...
share/Makefile.am
View file @
41e5bcda
...
...
@@ -59,8 +59,7 @@ endif
DIST_rsrc
=
\
newres.h
\
resource.h
\
vlc_wince_rc.rc
\
vlc_beos.rsrc
vlc_wince_rc.rc
DIST_skins2
=
\
skins2/fonts/FreeSans.ttf
\
...
...
share/vlc_beos.rsrc
deleted
100644 → 0
View file @
242b536f
File deleted
src/Makefile.am
View file @
41e5bcda
...
...
@@ -7,7 +7,6 @@ SUBDIRS = . test
NULL
=
EXTRA_DIST
=
extras/COPYING
\
misc/beos_specific.cpp
\
libvlc.pc.in
\
vlc-plugin.pc.in
\
libvlc.sym
\
...
...
@@ -236,7 +235,6 @@ endif
EXTRA_libvlccore_la_SOURCES
=
\
$(SOURCES_libvlc_beos)
\
$(SOURCES_libvlc_darwin)
\
$(SOURCES_libvlc_linux)
\
$(SOURCES_libvlc_win32)
\
...
...
@@ -245,9 +243,6 @@ EXTRA_libvlccore_la_SOURCES = \
$(SOURCES_libvlc_sout)
\
$(SOURCES_libvlc_vlm)
\
$(NULL)
if
HAVE_BEOS
libvlccore_la_SOURCES
+=
$(SOURCES_libvlc_beos)
else
if
HAVE_DARWIN
libvlccore_la_SOURCES
+=
$(SOURCES_libvlc_darwin)
else
...
...
@@ -265,7 +260,6 @@ endif
endif
endif
endif
endif
if
BUILD_HTTPD
libvlccore_la_SOURCES
+=
$(SOURCES_libvlc_httpd)
endif
...
...
@@ -276,11 +270,6 @@ libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
endif
endif
SOURCES_libvlc_beos
=
\
misc/atomic.c
\
misc/pthread.c
\
$(NULL)
SOURCES_libvlc_darwin
=
\
config/dirs_macos.c
\
misc/atomic.c
\
...
...
@@ -492,7 +481,6 @@ SOURCES_libvlc_vlm = \
SOURCES_libvlc
=
\
$(SOURCES_libvlc_common)
\
$(OPT_SOURCES_libvlc_beos)
\
$(OPT_SOURCES_libvlc_darwin)
\
$(OPT_SOURCES_libvlc_win32)
\
$(NULL)
...
...
src/config/file.c
View file @
41e5bcda
...
...
@@ -84,7 +84,7 @@ static FILE *config_OpenConfigFile( vlc_object_t *p_obj )
psz_filename
);
}
#if !( defined(WIN32) || defined(__APPLE__)
|| defined(SYS_BEOS)
)
#if !( defined(WIN32) || defined(__APPLE__) )
else
if
(
p_stream
==
NULL
&&
errno
==
ENOENT
)
{
/* This is the fallback for pre XDG Base Directory
...
...
src/libvlc-module.c
View file @
41e5bcda
...
...
@@ -2091,13 +2091,12 @@ vlc_module_begin ()
add_obsolete_bool
(
"auto-adjust-pts-delay"
)
#if !defined(__APPLE__) && !defined(SYS_BEOS) && defined(LIBVLC_USE_PTHREAD)
#ifdef LIBVLC_USE_PTHREAD
# ifndef __APPLE__
add_bool
(
"rt-priority"
,
false
,
RT_PRIORITY_TEXT
,
RT_PRIORITY_LONGTEXT
,
true
)
change_need_restart
()
#endif
#if !defined(SYS_BEOS) && defined(LIBVLC_USE_PTHREAD)
# endif
add_integer
(
"rt-offset"
,
0
,
RT_OFFSET_TEXT
,
RT_OFFSET_LONGTEXT
,
true
)
change_need_restart
()
...
...
src/misc/beos_specific.cpp
deleted
100644 → 0
View file @
242b536f
/*****************************************************************************
* beos_init.cpp: Initialization for BeOS specific features
*****************************************************************************
* Copyright (C) 1999-2004 the VideoLAN team
* $Id$
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include <Application.h>
#include <Roster.h>
#include <Path.h>
#include <Alert.h>
#include <Message.h>
#include <Window.h>
#include <stdio.h>
#include <string.h>
/* strdup() */
#include <malloc.h>
/* free() */
extern
"C"
{
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc_common.h>
#include "../libvlc.h"
}
/*****************************************************************************
* The VlcApplication class
*****************************************************************************/
class
VlcApplication
:
public
BApplication
{
public:
vlc_object_t
*
p_this
;
VlcApplication
(
char
*
);
~
VlcApplication
();
virtual
void
ReadyToRun
();
virtual
void
AboutRequested
();
virtual
void
RefsReceived
(
BMessage
*
message
);
virtual
void
MessageReceived
(
BMessage
*
message
);
virtual
bool
QuitRequested
();
private:
BWindow
*
fInterfaceWindow
;
BMessage
*
fRefsMessage
;
bool
fReadyToQuit
;
};
/*****************************************************************************
* Static vars
*****************************************************************************/
#include "../../modules/gui/beos/MsgVals.h"
#define REALLY_QUIT 'requ'
static
vlc_object_t
*
p_appthread
;
extern
"C"
{
/*****************************************************************************
* Local prototypes.
*****************************************************************************/
static
void
*
AppThread
(
vlc_object_t
*
p_appthread
);
/*****************************************************************************
* system_Init: create a BApplication object and fill in program path.
*****************************************************************************/
void
system_Init
(
libvlc_int_t
*
p_this
,
int
*
pi_argc
,
const
char
*
ppsz_argv
[]
)
{
p_appthread
=
(
vlc_object_t
*
)
vlc_object_create
(
p_this
,
sizeof
(
vlc_object_t
)
);
/* Create the BApplication thread and wait for initialization */
vlc_thread_create
(
p_appthread
,
"app thread"
,
AppThread
,
VLC_THREAD_PRIORITY_LOW
,
true
);
}
/*****************************************************************************
* system_Configure: check for system specific configuration options.
*****************************************************************************/
void
system_Configure
(
libvlc_int_t
*
,
int
*
pi_argc
,
const
char
*
ppsz_argv
[]
)
{
}
/*****************************************************************************
* system_End: destroy the BApplication object.
*****************************************************************************/
void
system_End
(
libvlc_int_t
*
p_this
)
{
/* Tell the BApplication to die */
be_app
->
PostMessage
(
REALLY_QUIT
);
vlc_thread_join
(
p_appthread
);
vlc_object_release
(
p_appthread
);
free
(
psz_vlcpath
);
}
/* following functions are local */
/*****************************************************************************
* AppThread: the BApplication thread.
*****************************************************************************/
static
void
*
AppThread
(
vlc_object_t
*
p_this
)
{
int
canc
=
vlc_savecancel
();
VlcApplication
*
BeApp
=
new
VlcApplication
(
"application/x-vnd.videolan-vlc"
);
vlc_object_attach
(
p_this
,
p_this
->
p_libvlc
);
BeApp
->
p_this
=
p_this
;
BeApp
->
Run
();
vlc_object_detach
(
p_this
);
delete
BeApp
;
vlc_restorecancel
(
canc
);
return
NULL
;
}
}
/* extern "C" */
/*****************************************************************************
* VlcApplication: application constructor
*****************************************************************************/
VlcApplication
::
VlcApplication
(
char
*
psz_mimetype
)
:
BApplication
(
psz_mimetype
),
fInterfaceWindow
(
NULL
),
fRefsMessage
(
NULL
),
fReadyToQuit
(
false
)
{
/* Nothing to do, we use the default constructor */
}
/*****************************************************************************
* ~VlcApplication: application destructor
*****************************************************************************/
VlcApplication
::~
VlcApplication
(
)
{
/* Nothing to do, we use the default destructor */
delete
fRefsMessage
;
}
/*****************************************************************************
* AboutRequested: called by the system on B_ABOUT_REQUESTED
*****************************************************************************/
void
VlcApplication
::
AboutRequested
(
)
{
BAlert
*
alert
;
alert
=
new
BAlert
(
"VLC "
PACKAGE_VERSION
,
"VLC "
PACKAGE_VERSION
" for BeOS
\n\n
"
"<www.videolan.org>"
,
"OK"
);
alert
->
Go
(
NULL
);
}
/*****************************************************************************
* ReadyToRun: called when the BApplication is initialized
*****************************************************************************/
void
VlcApplication
::
ReadyToRun
(
)
{
BPath
path
;
app_info
info
;
/* Get the program path */
be_app
->
GetAppInfo
(
&
info
);
BEntry
entry
(
&
info
.
ref
);
entry
.
GetPath
(
&
path
);
path
.
GetParent
(
&
path
);
psz_vlcpath
=
strdup
(
path
.
Path
()
);
/* Tell the main thread we are finished initializing the BApplication */
vlc_thread_ready
(
p_this
);
}
/*****************************************************************************
* RefsReceived: called when files are sent to our application
* (for example when the user drops fils onto our icon)
*****************************************************************************/
void
VlcApplication
::
RefsReceived
(
BMessage
*
message
)
{
if
(
fInterfaceWindow
)
fInterfaceWindow
->
PostMessage
(
message
);
else
{
delete
fRefsMessage
;
fRefsMessage
=
new
BMessage
(
*
message
);
}
}
/*****************************************************************************
* MessageReceived: a BeOS applications main message loop
* Since VlcApplication and interface are separated
* in the vlc binary and the interface plugin,
* we use this method to "stick" them together.
* The interface will post a message to the global
* "be_app" pointer when the interface is created
* containing a pointer to the interface window.
* In this way, we can keep a B_REFS_RECEIVED message
* in store for the interface window to handle later.
*****************************************************************************/
void
VlcApplication
::
MessageReceived
(
BMessage
*
message
)
{
switch
(
message
->
what
)
{
case
INTERFACE_CREATED
:
{
BWindow
*
interfaceWindow
;
if
(
message
->
FindPointer
(
"window"
,
(
void
**
)
&
interfaceWindow
)
==
B_OK
)
{
fInterfaceWindow
=
interfaceWindow
;
if
(
fRefsMessage
)
{
fInterfaceWindow
->
PostMessage
(
fRefsMessage
);
delete
fRefsMessage
;
fRefsMessage
=
NULL
;
}
}
break
;
}
case
REALLY_QUIT
:
fReadyToQuit
=
true
;
PostMessage
(
B_QUIT_REQUESTED
);
break
;
default:
BApplication
::
MessageReceived
(
message
);
}
}
bool
VlcApplication
::
QuitRequested
()
{
if
(
!
fReadyToQuit
)
{
libvlc_Quit
(
p_this
->
p_libvlc
);
return
false
;
}
BApplication
::
QuitRequested
();
return
true
;
}
src/misc/update.c
View file @
41e5bcda
...
...
@@ -78,8 +78,6 @@
# define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status-ce"
#elif defined( WIN32 )
# define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status-win-x86"
#elif defined( SYS_BEOS )
# define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status-beos-x86"
#else
# define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status"
#endif
...
...
src/modules/os.c
View file @
41e5bcda
...
...
@@ -42,10 +42,6 @@
#if !defined(HAVE_DYNAMIC_PLUGINS)
/* no support for plugins */
#elif defined(HAVE_DL_BEOS)
# if defined(HAVE_IMAGE_H)
# include <image.h>
# endif
#elif defined(__APPLE__)
# include <dlfcn.h>
#elif defined(HAVE_DL_WINDOWS)
...
...
@@ -95,10 +91,7 @@ int module_Call( vlc_object_t *obj, module_t *p_module )
if
(
pf_symbol
==
NULL
)
{
#if defined(HAVE_DL_BEOS)
msg_Warn
(
obj
,
"cannot find symbol
\"
%s
\"
in file `%s'"
,
psz_name
,
p_module
->
psz_filename
);
#elif defined(HAVE_DL_WINDOWS)
#if defined(HAVE_DL_WINDOWS)
char
*
psz_error
=
GetWindowsError
();
msg_Warn
(
obj
,
"cannot find symbol
\"
%s
\"
in file `%s' (%s)"
,
psz_name
,
p_module
->
psz_filename
,
psz_error
);
...
...
@@ -142,15 +135,7 @@ int module_Load( vlc_object_t *p_this, const char *psz_file,
{
module_handle_t
handle
;
#if defined(HAVE_DL_BEOS)
handle
=
load_add_on
(
psz_file
);
if
(
handle
<
0
)
{
msg_Warn
(
p_this
,
"cannot load module `%s'"
,
psz_file
);
return
-
1
;
}
#elif defined(HAVE_DL_WINDOWS)
#if defined(HAVE_DL_WINDOWS)
wchar_t
psz_wfile
[
MAX_PATH
];
MultiByteToWideChar
(
CP_UTF8
,
0
,
psz_file
,
-
1
,
psz_wfile
,
MAX_PATH
);
...
...
@@ -222,10 +207,7 @@ int module_Load( vlc_object_t *p_this, const char *psz_file,
*/
void
module_Unload
(
module_handle_t
handle
)
{
#if defined(HAVE_DL_BEOS)
unload_add_on
(
handle
);
#elif defined(HAVE_DL_WINDOWS)
#if defined(HAVE_DL_WINDOWS)
FreeLibrary
(
handle
);
#elif defined(HAVE_DL_DLOPEN)
...
...
@@ -255,19 +237,7 @@ void module_Unload( module_handle_t handle )
*/
static
void
*
module_Lookup
(
module_handle_t
handle
,
const
char
*
psz_function
)
{
#if defined(HAVE_DL_BEOS)
void
*
p_symbol
;
if
(
B_OK
==
get_image_symbol
(
handle
,
psz_function
,
B_SYMBOL_TYPE_TEXT
,
&
p_symbol
)
)
{
return
p_symbol
;
}
else
{
return
NULL
;
}
#elif defined(HAVE_DL_WINDOWS) && defined(UNDER_CE)
#if defined(HAVE_DL_WINDOWS) && defined(UNDER_CE)
wchar_t
wide
[
strlen
(
psz_function
)
+
1
];
size_t
i
=
0
;
do
...
...
src/network/poll.c
View file @
41e5bcda
...
...
@@ -110,8 +110,6 @@ resume:
* FD_SETSIZE in terms of absolute value - they are not POSIX file
* descriptors. From Vista, there is a much nicer WSAPoll(), but Mingw
* is yet to support it.
*
* With BeOS, the situation is unknown (FIXME: document).
*/
if
(
fds
[
i
].
events
&
POLLIN
)
FD_SET
(
fd
,
&
rdset
);
...
...
src/network/rootbind.c
View file @
41e5bcda
...
...
@@ -24,7 +24,7 @@
#define _XPG4_2
/* ancilliary data on Solaris */
#if !defined (WIN32)
&& !defined (SYS_BEOS)
#if !defined (WIN32)
# define ENABLE_ROOTWRAP 1
#endif
...
...
src/network/udp.c
View file @
41e5bcda
...
...
@@ -673,7 +673,6 @@ int net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port,
if
(
fd
==
-
1
)
continue
;
#if !defined( SYS_BEOS )
/* Increase the receive buffer size to 1/2MB (8Mb/s during 1/2s)
* to avoid packet loss caused by scheduling problems */
setsockopt
(
fd
,
SOL_SOCKET
,
SO_RCVBUF
,
&
(
int
){
0x80000
},
sizeof
(
int
));
...
...
@@ -681,7 +680,6 @@ int net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port,
/* Allow broadcast sending */
setsockopt
(
fd
,
SOL_SOCKET
,
SO_BROADCAST
,
&
(
int
){
1
},
sizeof
(
int
));
#endif
if
(
i_hlim
>=
0
)
net_SetMcastHopLimit
(
p_this
,
fd
,
ptr
->
ai_family
,
i_hlim
);
...
...
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