(Dano is no more needed); multicast still doesn't work.
UDP (unicast) and HTTP have been successfully tested, mms is untested.
* sap.c: BeOS doesn't have memccpy
* VideoOutput.cpp: forgot to remove a printf
LDFLAGS_vlc="${LDFLAGS_vlc} -lbe"
LDFLAGS_plugins="${LDFLAGS_plugins} -nostart"
LDFLAGS_beos="${LDFLAGS_beos} -lbe -lmedia -lroot -ltracker -lstdc++.r4 -ltranslation"
- LDFLAGS_ipv4="${LDFLAGS_ipv4} -lbind"
+ dnl BONE or not BONE ?
+ AC_CHECK_LIB( bind, inet_ntoa,
+ [ LDFLAGS_access_mms="${LDFLAGS_access_mms} -lbind"
+ LDFLAGS_ipv4="${LDFLAGS_ipv4} -lbind"],
+ [])
;;
x*)
SYS="${target_os}"
PLUGINS="${PLUGINS} i420_rgb i420_yuy2 i422_yuy2 i420_ymga"
PLUGINS="${PLUGINS} id3 m3u"
PLUGINS="${PLUGINS} wav araw demuxdump demuxsub adpcm"
-
-dnl
-dnl Network modules
-dnl
-NETWORK_MODULES="access_udp access_http access_rtp ipv4 access_mms sap"
+PLUGINS="${PLUGINS} access_udp access_http access_rtp ipv4 access_mms sap"
dnl
dnl Accelerated modules
SSE_MODULES="imdctsse downmixsse"
ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
-if test x${SYS} != xbeos
-then
- PLUGINS="${PLUGINS} ${NETWORK_MODULES}"
-fi
-
AC_CACHE_CHECK([if \$CC groks MMX inline assembly],
[ac_cv_mmx_inline],
[CFLAGS="${CFLAGS_save}"
* mms.c: MMS access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: mms.c,v 1.10 2002/12/02 21:13:25 jlj Exp $
+ * $Id: mms.c,v 1.11 2002/12/04 06:23:08 titer Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
#else
# include <sys/socket.h>
# include <netinet/in.h>
-# include <arpa/inet.h>
+# if HAVE_ARPA_INET_H
+# include <arpa/inet.h>
+# elif defined( SYS_BEOS )
+# include <net/netdb.h>
+# endif
#endif
#include "network.h"
* vout_beos.cpp: beos video output display method
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
- * $Id: VideoOutput.cpp,v 1.7 2002/12/03 02:00:37 titer Exp $
+ * $Id: VideoOutput.cpp,v 1.8 2002/12/04 06:23:08 titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
{
VideoWindow* videoWindow = dynamic_cast<VideoWindow*>(Window());
BMessage* msg = Window()->CurrentMessage();
- msg->PrintToStream();
int32 clicks;
uint32 buttons;
msg->FindInt32("clicks", &clicks);
* ipv4.c: IPv4 network abstraction layer
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: ipv4.c,v 1.7 2002/11/28 23:24:15 massiot Exp $
+ * $Id: ipv4.c,v 1.8 2002/12/04 06:23:08 titer Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Mathias Kretschmer <mathias@research.att.com>
/* Increase the receive buffer size to 1/2MB (8Mb/s during 1/2s) to avoid
* packet loss caused by scheduling problems */
i_opt = 0x80000;
+#if defined( SYS_BEOS )
+ if( setsockopt( i_handle, SOL_SOCKET, SO_NONBLOCK,
+#else
if( setsockopt( i_handle, SOL_SOCKET, SO_RCVBUF,
+#endif
(void *) &i_opt, sizeof( i_opt ) ) == -1 )
{
#ifdef HAVE_ERRNO_H
* is typically only 65535 bytes */
i_opt = 0;
i_opt_size = sizeof( i_opt );
+#if defined( SYS_BEOS )
+ if( getsockopt( i_handle, SOL_SOCKET, SO_NONBLOCK,
+#else
if( getsockopt( i_handle, SOL_SOCKET, SO_RCVBUF,
+#endif
(void*) &i_opt, &i_opt_size ) == -1 )
{
#ifdef HAVE_ERRNO_H
if( !*psz_bind_addr )
{
i_opt = 1;
+#if defined( SYS_BEOS )
+ if( setsockopt( i_handle, SOL_SOCKET, SO_NONBLOCK,
+#else
if( setsockopt( i_handle, SOL_SOCKET, SO_BROADCAST,
+#endif
(void*) &i_opt, sizeof( i_opt ) ) == -1 )
{
#ifdef HAVE_ERRNO_H
}
}
-#ifndef UNDER_CE
+#if !defined( UNDER_CE ) && !defined( SYS_BEOS )
/* Join the multicast group if the socket is a multicast address */
#ifndef IN_MULTICAST
# define IN_MULTICAST(a) IN_CLASSD(a)
* sap.c : SAP interface module
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: sap.c,v 1.2 2002/12/03 23:36:41 gitan Exp $
+ * $Id: sap.c,v 1.3 2002/12/04 06:23:08 titer Exp $
*
* Authors: Arnaud Schauly <gitan@via.ecp.fr>
*
#else
# include <sys/socket.h>
# include <netinet/in.h>
-# include <arpa/inet.h>
+# if HAVE_ARPA_INET_H
+# include <arpa/inet.h>
+# elif defined( SYS_BEOS )
+# include <net/netdb.h>
+# endif
#endif
#include "network.h"
if( ppsz_fill != NULL )
{
*ppsz_fill= malloc( sizeof(char) * (k+1) );
- memccpy(*ppsz_fill, &(psz_pct[j-k+1]),'\n', k );
+#if defined( SYS_BEOS )
+ /* BeOS doesn't have memccpy. This line probably won't work
+ properly, but BeOS has no multicast support anyway */
+ memcpy(*ppsz_fill, &(psz_pct[j-k+1]), k );
+#else
+ memccpy(*ppsz_fill, &(psz_pct[j-k+1]),'\n', k );
+#endif
(*ppsz_fill)[k]='\0';
}
ppsz_fill = NULL;