Commit 953ef37b authored by Eric Petit's avatar Eric Petit

* vlc_threads.h: lower a priority that made sound choppy on not-so-fast

                  BeOS computers (closes #119)
 * others: removed old printf or unused code.
parent d68becda
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* This header provides portable declarations for mutexes & conditions * This header provides portable declarations for mutexes & conditions
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2002 VideoLAN * Copyright (C) 1999, 2002 VideoLAN
* $Id: vlc_threads.h,v 1.22 2003/01/23 23:51:13 massiot Exp $ * $Id: vlc_threads.h,v 1.23 2003/01/24 06:31:56 titer Exp $
* *
* Authors: Jean-Marc Dressler <polux@via.ecp.fr> * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr> * Samuel Hocevar <sam@via.ecp.fr>
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
#elif defined(SYS_BEOS) #elif defined(SYS_BEOS)
# define VLC_THREAD_PRIORITY_LOW 5 # define VLC_THREAD_PRIORITY_LOW 5
# define VLC_THREAD_PRIORITY_INPUT 10 # define VLC_THREAD_PRIORITY_INPUT 10
# define VLC_THREAD_PRIORITY_AUDIO 120 # define VLC_THREAD_PRIORITY_AUDIO 100
# define VLC_THREAD_PRIORITY_VIDEO 15 # define VLC_THREAD_PRIORITY_VIDEO 15
# define VLC_THREAD_PRIORITY_OUTPUT 15 # define VLC_THREAD_PRIORITY_OUTPUT 15
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* DrawingTidbits.cpp * DrawingTidbits.cpp
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: DrawingTidbits.cpp,v 1.2 2002/09/30 18:30:27 titer Exp $ * $Id: DrawingTidbits.cpp,v 1.3 2003/01/24 06:31:56 titer Exp $
* *
* Authors: Tony Castley <tcastley@mail.powerup.com.au> * Authors: Tony Castley <tcastley@mail.powerup.com.au>
* Stephan Aßmus <stippi@yellowbites.com> * Stephan Aßmus <stippi@yellowbites.com>
...@@ -340,7 +340,6 @@ convert_bitmap( BBitmap* inBitmap, BBitmap* outBitmap ) ...@@ -340,7 +340,6 @@ convert_bitmap( BBitmap* inBitmap, BBitmap* outBitmap )
status = B_OK; status = B_OK;
break; break;
default: default:
//printf("unkown colorspace: %ld\n", inBitmap->ColorSpace());
status = B_MISMATCHED_VALUES; status = B_MISMATCHED_VALUES;
break; break;
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* MediaControlView.cpp: beos interface * MediaControlView.cpp: beos interface
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: MediaControlView.cpp,v 1.11 2003/01/22 01:13:22 titer Exp $ * $Id: MediaControlView.cpp,v 1.12 2003/01/24 06:31:56 titer Exp $
* *
* Authors: Tony Castley <tony@castley.net> * Authors: Tony Castley <tony@castley.net>
* Stephan Aßmus <stippi@yellowbites.com> * Stephan Aßmus <stippi@yellowbites.com>
...@@ -1009,8 +1009,6 @@ VolumeSlider::Draw(BRect updateRect) ...@@ -1009,8 +1009,6 @@ VolumeSlider::Draw(BRect updateRect)
SetDrawingMode(B_OP_OVER); // part of knob is transparent SetDrawingMode(B_OP_OVER); // part of knob is transparent
DrawBitmapAsync(fKnobBits, BPoint(knobPos - kVolumeSliderKnobWidth / 2, r.top)); DrawBitmapAsync(fKnobBits, BPoint(knobPos - kVolumeSliderKnobWidth / 2, r.top));
} }
else
fprintf(stderr, "VolumeSlider::Draw() - Error: no valid bitmaps!");
} }
/***************************************************************************** /*****************************************************************************
......
...@@ -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.9 2002/12/07 22:00:36 titer Exp $ * $Id: VideoOutput.cpp,v 1.10 2003/01/24 06:31:56 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>
...@@ -284,7 +284,6 @@ VideoWindow::MessageReceived( BMessage *p_message ) ...@@ -284,7 +284,6 @@ VideoWindow::MessageReceived( BMessage *p_message )
else else
{ {
delete temp; delete temp;
fprintf( stderr, "error copying bitmaps\n" );
} }
} }
break; break;
...@@ -826,23 +825,12 @@ VideoWindow::_save_screen_shot( void* cookie ) ...@@ -826,23 +825,12 @@ VideoWindow::_save_screen_shot( void* cookie )
nodeInfo.SetType( mime ); nodeInfo.SetType( mime );
} }
} }
} else {
fprintf( stderr, " failed to write bitmap: %s\n",
strerror( status ) );
} }
} else {
fprintf( stderr, " failed to create output file: %s\n",
strerror( status ) );
} }
outStream.DetachBitmap( &converted ); outStream.DetachBitmap( &converted );
outFile.Unset(); outFile.Unset();
} }
else
fprintf( stderr, " failed to find translator\n");
} }
else
fprintf( stderr, " failed to convert colorspace: %s\n",
strerror( status ) );
delete converted; delete converted;
} }
if ( info ) if ( info )
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* threads.c : threads implementation for the VideoLAN client * threads.c : threads implementation for the VideoLAN client
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001, 2002 VideoLAN * Copyright (C) 1999, 2000, 2001, 2002 VideoLAN
* $Id: threads.c,v 1.34 2003/01/10 17:01:53 titer Exp $ * $Id: threads.c,v 1.35 2003/01/24 06:31:56 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>
...@@ -627,7 +627,7 @@ int __vlc_thread_create( vlc_object_t *p_this, char * psz_file, int i_line, ...@@ -627,7 +627,7 @@ int __vlc_thread_create( vlc_object_t *p_this, char * psz_file, int i_line,
#elif defined( HAVE_KERNEL_SCHEDULER_H ) #elif defined( HAVE_KERNEL_SCHEDULER_H )
p_this->thread_id = spawn_thread( (thread_func)func, psz_name, p_this->thread_id = spawn_thread( (thread_func)func, psz_name,
i_priority/* B_NORMAL_PRIORITY */, (void *)p_this ); i_priority, (void *)p_this );
i_ret = resume_thread( p_this->thread_id ); i_ret = resume_thread( p_this->thread_id );
#endif #endif
......
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