]> git.sesse.net Git - vlc/commitdiff
* 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 93a1cce5ecbee40c1e1a6d558c2467a3a64a0b38..14d018f645439c6178383d84c63af4d9f7d5be82 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 8f0bd468a4a5aa4388c31ed47581ed87b22f558e..6103650cbcd3a599f93c1bc434c50a3cc4875688 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 0cdff093843f814ea091e36d14bcdbf079625138..699751588cbe84e11a7a53c0a097c6b252271bf2 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 a2f6dee63c15372b231bda17ba5c0a07e09ef017..ad385e37fa90e24c2bf0a320682ea665fd54df8f 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 269a63b863676281ea0712e94e57f13149ff4cf5..e3fefd993ecaf7f9874924e314b90b7cf0a275db 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