Commit 9498c61e authored by Eric Petit's avatar Eric Petit

+ configure.ac:

     fixed a link issue on BeOS
 + modules/demux/util/sub.c:
     gcc != 3 fix
 + modules/gui/beos/*:
     compile fixes; never replace int32 with int32_t, these are not the
     same on BeOS (long/int)
parent ea33ac4c
dnl Autoconf settings for vlc dnl Autoconf settings for vlc
dnl $Id: configure.ac,v 1.103 2003/11/03 23:05:03 fenrir Exp $ dnl $Id: configure.ac,v 1.104 2003/11/04 11:11:29 titer Exp $
AC_INIT(vlc,0.6.3-cvs) AC_INIT(vlc,0.6.3-cvs)
...@@ -140,9 +140,10 @@ case "${target_os}" in ...@@ -140,9 +140,10 @@ case "${target_os}" in
dnl Check for BONE presence dnl Check for BONE presence
AC_CHECK_LIB(socket, connect, AC_CHECK_LIB(socket, connect,
AX_ADD_LDFLAGS([vlc access_mms ipv4 httpd],[-lsocket -lbind])) AX_ADD_LDFLAGS([vlc ipv4 access_http access_mms access_udp access_ftp sap http access_output_udp],
[-lbind]))
dnl Kludgy check for Zeta dnl Ugly check for Zeta
if test -f /boot/beos/system/lib/libzeta.so; then if test -f /boot/beos/system/lib/libzeta.so; then
AX_ADD_LDFLAGS([beos],[-lzeta]) AX_ADD_LDFLAGS([beos],[-lzeta])
fi fi
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* sub.c * sub.c
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2003 VideoLAN * Copyright (C) 1999-2003 VideoLAN
* $Id: sub.c,v 1.32 2003/11/02 01:41:12 hartman Exp $ * $Id: sub.c,v 1.33 2003/11/04 11:11:30 titer Exp $
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -233,7 +233,7 @@ static struct ...@@ -233,7 +233,7 @@ static struct
static char * local_stristr( char *psz_big, char *psz_little) static char * local_stristr( char *psz_big, char *psz_little)
{ {
char *p_pos = psz_big; char *p_pos = psz_big;
if (!psz_big || !psz_little || !*psz_little) return psz_big; if (!psz_big || !psz_little || !*psz_little) return psz_big;
while (*p_pos) while (*p_pos)
...@@ -283,7 +283,7 @@ static int sub_open ( subtitle_demux_t *p_sub, ...@@ -283,7 +283,7 @@ static int sub_open ( subtitle_demux_t *p_sub,
if( psz_name ) free( psz_name ); if( psz_name ) free( psz_name );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
/* *** load the file *** */ /* *** load the file *** */
if( text_load( &txt, psz_name ) ) if( text_load( &txt, psz_name ) )
{ {
...@@ -1065,12 +1065,13 @@ static int sub_VobSub( text_t *txt, subtitle_t *p_subtitle, mtime_t i_microsecp ...@@ -1065,12 +1065,13 @@ static int sub_VobSub( text_t *txt, subtitle_t *p_subtitle, mtime_t i_microsecp
for( ;; ) for( ;; )
{ {
unsigned int h, m, s, ms, loc;
if( ( p = text_get_line( txt ) ) == NULL ) if( ( p = text_get_line( txt ) ) == NULL )
{ {
return( VLC_EGENERIC ); return( VLC_EGENERIC );
} }
i_start = 0; i_start = 0;
unsigned int h, m, s, ms, loc;
memset( buffer_text, '\0', MAX_LINE ); memset( buffer_text, '\0', MAX_LINE );
if( sscanf( p, "timestamp: %d:%d:%d:%d, filepos: %x%[^\r\n]", if( sscanf( p, "timestamp: %d:%d:%d:%d, filepos: %x%[^\r\n]",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vout_beos.cpp: beos video output display method * vout_beos.cpp: beos video output display method
***************************************************************************** *****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN * Copyright (C) 2000, 2001 VideoLAN
* $Id: VideoOutput.cpp,v 1.23 2003/10/25 00:49:14 sam Exp $ * $Id: VideoOutput.cpp,v 1.24 2003/11/04 11:11:30 titer Exp $
* *
* Authors: Jean-Marc Dressler <polux@via.ecp.fr> * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -165,10 +165,10 @@ VideoSettings::VideoSettings() ...@@ -165,10 +165,10 @@ VideoSettings::VideoSettings()
if ( ret == B_OK ) if ( ret == B_OK )
{ {
uint32_t flags; uint32_t flags;
if ( fSettings->FindInt32( "flags", (int32_t*)&flags ) == B_OK ) if ( fSettings->FindInt32( "flags", (int32*)&flags ) == B_OK )
SetFlags( flags ); SetFlags( flags );
uint32_t size; uint32_t size;
if ( fSettings->FindInt32( "video size", (int32_t*)&size ) == B_OK ) if ( fSettings->FindInt32( "video size", (int32*)&size ) == B_OK )
SetVideoSize( size ); SetVideoSize( size );
} }
else else
...@@ -310,7 +310,7 @@ VideoWindow::VideoWindow(int v_width, int v_height, BRect frame, ...@@ -310,7 +310,7 @@ VideoWindow::VideoWindow(int v_width, int v_height, BRect frame,
VideoWindow::~VideoWindow() VideoWindow::~VideoWindow()
{ {
int32_t result; int32 result;
teardownwindow = true; teardownwindow = true;
wait_for_thread(fDrawThreadID, &result); wait_for_thread(fDrawThreadID, &result);
...@@ -345,7 +345,7 @@ VideoWindow::MessageReceived( BMessage *p_message ) ...@@ -345,7 +345,7 @@ VideoWindow::MessageReceived( BMessage *p_message )
case WINDOW_FEEL: case WINDOW_FEEL:
{ {
window_feel winFeel; window_feel winFeel;
if (p_message->FindInt32("WinFeel", (int32_t*)&winFeel) == B_OK) if (p_message->FindInt32("WinFeel", (int32*)&winFeel) == B_OK)
{ {
SetFeel(winFeel); SetFeel(winFeel);
fCachedFeel = winFeel; fCachedFeel = winFeel;
...@@ -916,7 +916,7 @@ VideoWindow::_SaveScreenShot( BBitmap* bitmap, char* path, ...@@ -916,7 +916,7 @@ VideoWindow::_SaveScreenShot( BBitmap* bitmap, char* path,
/***************************************************************************** /*****************************************************************************
* VideoWindow::_save_screen_shot * VideoWindow::_save_screen_shot
*****************************************************************************/ *****************************************************************************/
int32_t int32
VideoWindow::_save_screen_shot( void* cookie ) VideoWindow::_save_screen_shot( void* cookie )
{ {
screen_shot_info* info = (screen_shot_info*)cookie; screen_shot_info* info = (screen_shot_info*)cookie;
...@@ -968,7 +968,7 @@ VideoWindow::_save_screen_shot( void* cookie ) ...@@ -968,7 +968,7 @@ VideoWindow::_save_screen_shot( void* cookie )
// find suitable translator // find suitable translator
translator_id* ids = NULL; translator_id* ids = NULL;
int32_t count = 0; int32 count = 0;
status = roster->GetAllTranslators( &ids, &count ); status = roster->GetAllTranslators( &ids, &count );
if ( status >= B_OK ) if ( status >= B_OK )
...@@ -976,7 +976,7 @@ VideoWindow::_save_screen_shot( void* cookie ) ...@@ -976,7 +976,7 @@ VideoWindow::_save_screen_shot( void* cookie )
for ( int tix = 0; tix < count; tix++ ) for ( int tix = 0; tix < count; tix++ )
{ {
const translation_format *formats = NULL; const translation_format *formats = NULL;
int32_t num_formats = 0; int32 num_formats = 0;
bool ok = false; bool ok = false;
status = roster->GetInputFormats( ids[tix], status = roster->GetInputFormats( ids[tix],
&formats, &num_formats ); &formats, &num_formats );
...@@ -1029,7 +1029,7 @@ VideoWindow::_save_screen_shot( void* cookie ) ...@@ -1029,7 +1029,7 @@ VideoWindow::_save_screen_shot( void* cookie )
if ( nodeInfo.InitCheck() == B_OK ) if ( nodeInfo.InitCheck() == B_OK )
{ {
translation_format* formats; translation_format* formats;
int32_t count; int32 count;
status = roster->GetOutputFormats( translator, status = roster->GetOutputFormats( translator,
(const translation_format **) &formats, (const translation_format **) &formats,
&count); &count);
...@@ -1105,10 +1105,10 @@ VLCView::MouseDown(BPoint where) ...@@ -1105,10 +1105,10 @@ VLCView::MouseDown(BPoint where)
{ {
VideoWindow* videoWindow = dynamic_cast<VideoWindow*>(Window()); VideoWindow* videoWindow = dynamic_cast<VideoWindow*>(Window());
BMessage* msg = Window()->CurrentMessage(); BMessage* msg = Window()->CurrentMessage();
int32_t clicks; int32 clicks;
uint32_t buttons; uint32_t buttons;
msg->FindInt32("clicks", &clicks); msg->FindInt32("clicks", &clicks);
msg->FindInt32("buttons", (int32_t*)&buttons); msg->FindInt32("buttons", (int32*)&buttons);
if (videoWindow) if (videoWindow)
{ {
...@@ -1274,7 +1274,7 @@ VLCView::Pulse() ...@@ -1274,7 +1274,7 @@ VLCView::Pulse()
system_time() - fLastMouseMovedTime > 29000000 ) system_time() - fLastMouseMovedTime > 29000000 )
{ {
BPoint where; BPoint where;
uint32_t buttons; uint32 buttons;
GetMouse(&where, &buttons, false); GetMouse(&where, &buttons, false);
ConvertToScreen(&where); ConvertToScreen(&where);
set_mouse_position((int32_t) where.x, (int32_t) where.y); set_mouse_position((int32_t) where.x, (int32_t) where.y);
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* VideoWindow.h: BeOS video window class prototype * VideoWindow.h: BeOS video window class prototype
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: VideoWindow.h,v 1.7 2003/10/25 00:49:14 sam Exp $ * $Id: VideoWindow.h,v 1.8 2003/11/04 11:11:30 titer Exp $
* *
* Authors: Jean-Marc Dressler <polux@via.ecp.fr> * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Tony Castley <tcastley@mail.powerup.com.au> * Tony Castley <tcastley@mail.powerup.com.au>
...@@ -192,7 +192,7 @@ private: ...@@ -192,7 +192,7 @@ private:
void _SaveScreenShot( BBitmap* bitmap, void _SaveScreenShot( BBitmap* bitmap,
char* path, char* path,
uint32_t translatorID ) const; uint32_t translatorID ) const;
static int32_t _save_screen_shot( void* cookie ); static int32 _save_screen_shot( void* cookie );
struct screen_shot_info struct screen_shot_info
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment