Commit 677963f1 authored by Eric Petit's avatar Eric Petit

* sanity Lock()s

parent c5c3a0f0
......@@ -2,7 +2,7 @@
* MessagesWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: MessagesWindow.cpp,v 1.3 2003/01/28 08:17:26 titer Exp $
* $Id: MessagesWindow.cpp,v 1.4 2003/01/28 10:05:15 titer Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
......@@ -164,11 +164,13 @@ void MessagesWindow::UpdateMessages()
fMessagesView->UnlockLooper();
/* Scroll at the end */
fScrollBar->LockLooper();
float min, max;
fScrollBar->GetRange( &min, &max );
fScrollBar->SetValue( max );
fScrollBar->UnlockLooper();
if( fScrollBar->LockLooper() )
{
float min, max;
fScrollBar->GetRange( &min, &max );
fScrollBar->SetValue( max );
fScrollBar->UnlockLooper();
}
}
vlc_mutex_lock( p_sub->p_lock );
......
......@@ -2,7 +2,7 @@
* PreferencesWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: PreferencesWindow.cpp,v 1.10 2003/01/27 10:29:21 titer Exp $
* $Id: PreferencesWindow.cpp,v 1.11 2003/01/28 10:05:15 titer Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
......@@ -206,6 +206,7 @@ void PreferencesWindow::MessageReceived( BMessage * p_message )
*****************************************************************************/
void PreferencesWindow::ReallyQuit()
{
Lock();
Hide();
Quit();
}
......
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