* intf_beos.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: Interface.cpp,v 1.11 2003/03/12 23:15:03 titer Exp $
+ * $Id: Interface.cpp,v 1.15 2003/06/22 00:40:18 titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
free( p_intf->p_sys );
msg_Err( p_intf, "cannot allocate InterfaceWindow" );
return( 1 );
- } else {
+ }
+ else
+ {
+ /* Make the be_app aware the interface has been created */
BMessage message(INTERFACE_CREATED);
message.AddPointer("window", p_intf->p_sys->p_window);
be_app->PostMessage(&message);
}
- p_intf->p_sys->i_saved_volume = AOUT_VOLUME_DEFAULT;
p_intf->p_sys->b_loop = 0;
p_intf->p_sys->b_mute = 0;
msg_Unsubscribe( p_intf, p_intf->p_sys->p_sub );
/* Destroy the interface window */
- p_intf->p_sys->p_window->Lock();
- p_intf->p_sys->p_window->Quit();
+ if( p_intf->p_sys->p_window->Lock() )
+ p_intf->p_sys->p_window->Quit();
/* Destroy structure */
delete p_intf->p_sys->p_wrapper;
{
while( !p_intf->b_die )
{
- if( p_intf->p_sys->p_wrapper->UpdateInput() )
- {
- /* Manage the slider */
- p_intf->p_sys->p_window->UpdateInterface();
- }
+ /* Update VlcWrapper internals (p_input, etc) */
+ p_intf->p_sys->p_wrapper->UpdateInput();
+
+ /* Manage the slider */
+ p_intf->p_sys->p_window->UpdateInterface();
/* Wait a bit */
msleep( INTF_IDLE_SLEEP );