* vlc_threads.h: lower a priority that made sound choppy on not-so-fast
authorEric Petit <titer@videolan.org>
Fri, 24 Jan 2003 06:31:56 +0000 (06:31 +0000)
committerEric Petit <titer@videolan.org>
Fri, 24 Jan 2003 06:31:56 +0000 (06:31 +0000)
                  BeOS computers (closes #119)
 * others: removed old printf or unused code.

include/vlc_threads.h
modules/gui/beos/DrawingTidbits.cpp
modules/gui/beos/MediaControlView.cpp
modules/gui/beos/VideoOutput.cpp
src/misc/threads.c

index 93a1cce..14d018f 100644 (file)
@@ -3,7 +3,7 @@
  * This header provides portable declarations for mutexes & conditions
  *****************************************************************************
  * 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>
  *          Samuel Hocevar <sam@via.ecp.fr>
@@ -94,7 +94,7 @@
 #elif defined(SYS_BEOS)
 #   define VLC_THREAD_PRIORITY_LOW 5
 #   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_OUTPUT 15
 
index 8f0bd46..6103650 100644 (file)
@@ -2,7 +2,7 @@
  * DrawingTidbits.cpp
  *****************************************************************************
  * 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>
  *          Stephan Aßmus <stippi@yellowbites.com>
@@ -340,7 +340,6 @@ convert_bitmap( BBitmap* inBitmap, BBitmap* outBitmap )
                                        status = B_OK;
                                        break;
                                default:
-//printf("unkown colorspace: %ld\n", inBitmap->ColorSpace());
                                        status = B_MISMATCHED_VALUES;
                                        break;
                        }
index 0cdff09..6997515 100644 (file)
@@ -2,7 +2,7 @@
  * MediaControlView.cpp: beos interface
  *****************************************************************************
  * 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>
  *          Stephan Aßmus <stippi@yellowbites.com>
@@ -1009,8 +1009,6 @@ VolumeSlider::Draw(BRect updateRect)
                SetDrawingMode(B_OP_OVER); // part of knob is transparent
                DrawBitmapAsync(fKnobBits, BPoint(knobPos - kVolumeSliderKnobWidth / 2, r.top));
        }
-       else
-               fprintf(stderr, "VolumeSlider::Draw() - Error: no valid bitmaps!");
 }
 
 /*****************************************************************************
index a2f6dee..ad385e3 100644 (file)
@@ -2,7 +2,7 @@
  * vout_beos.cpp: beos video output display method
  *****************************************************************************
  * 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>
  *          Samuel Hocevar <sam@zoy.org>
@@ -284,7 +284,6 @@ VideoWindow::MessageReceived( BMessage *p_message )
                                else
                                {
                                        delete temp;
-                                       fprintf( stderr, "error copying bitmaps\n" );
                                }
                        }
                        break;
@@ -826,23 +825,12 @@ VideoWindow::_save_screen_shot( void* cookie )
                                                                        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 );
                                outFile.Unset();
                        }
-                       else
-                               fprintf( stderr, "  failed to find translator\n");
                }
-               else
-                               fprintf( stderr, "  failed to convert colorspace: %s\n",
-                                                strerror( status ) );
                delete converted;
        }
        if ( info )
index 269a63b..e3fefd9 100644 (file)
@@ -2,7 +2,7 @@
  * threads.c : threads implementation for the VideoLAN client
  *****************************************************************************
  * 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>
  *          Samuel Hocevar <sam@zoy.org>
@@ -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 )
     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 );
 
 #endif