* InterfaceWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: InterfaceWindow.cpp,v 1.40 2003/05/30 17:30:54 titer Exp $
+ * $Id: InterfaceWindow.cpp,v 1.41 2003/05/30 18:43:31 titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
if ( fSpeedMenu->IsEnabled() != hasFile )
fSpeedMenu->SetEnabled( hasFile );
// "goto menu" menu item
- bool hasMenu = config_GetInt( p_intf, "beos-dvdmenus" ) ?
- hasTitles : false;
+ bool hasMenu = p_wrapper->IsUsingMenus();
if ( fGotoMenuMI->IsEnabled() != hasMenu )
fGotoMenuMI->SetEnabled( hasMenu );
Unlock();
* VlcWrapper.cpp: BeOS plugin for vlc (derived from MacOS X port)
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: VlcWrapper.cpp,v 1.31 2003/05/30 17:30:54 titer Exp $
+ * $Id: VlcWrapper.cpp,v 1.32 2003/05/30 18:43:31 titer Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
* DVD *
*******/
+bool VlcWrapper::IsUsingMenus()
+{
+ if( !p_input )
+ return false;
+
+ if( !strncmp( PlaylistItemName( PlaylistCurrent() ), "dvdplay:", 8 ) )
+ return true;
+
+ return false;
+}
+
bool VlcWrapper::HasTitles()
{
if( !p_input )
- {
return false;
- }
+
return ( p_input->stream.i_area_nb > 1 );
}
* VlcWrapper.h: BeOS plugin for vlc (derived from MacOS X port)
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: VlcWrapper.h,v 1.24 2003/05/30 17:30:54 titer Exp $
+ * $Id: VlcWrapper.h,v 1.25 2003/05/30 18:43:31 titer Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
VlcWrapper( intf_thread_t *p_intf );
~VlcWrapper();
- void UpdateInput();
-
/* Input */
+ void UpdateInput();
bool HasInput();
int InputStatus();
int InputRate();
bool IsMuted();
/* DVD */
+ bool IsUsingMenus();
bool HasTitles();
BList * GetTitles();
void PrevTitle();