Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
843ab7ad
Commit
843ab7ad
authored
May 30, 2003
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules/gui/beos/* : fixed "Goto Menu" menuitem enabling
parent
d1208fa6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
9 deletions
+18
-9
modules/gui/beos/InterfaceWindow.cpp
modules/gui/beos/InterfaceWindow.cpp
+2
-3
modules/gui/beos/VlcWrapper.cpp
modules/gui/beos/VlcWrapper.cpp
+13
-3
modules/gui/beos/VlcWrapper.h
modules/gui/beos/VlcWrapper.h
+3
-3
No files found.
modules/gui/beos/InterfaceWindow.cpp
View file @
843ab7ad
...
...
@@ -2,7 +2,7 @@
* InterfaceWindow.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: InterfaceWindow.cpp,v 1.4
0 2003/05/30 17:30:54
titer Exp $
* $Id: InterfaceWindow.cpp,v 1.4
1 2003/05/30 18:43:31
titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -858,8 +858,7 @@ InterfaceWindow::_SetMenusEnabled(bool hasFile, bool hasChapters, bool hasTitles
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
();
...
...
modules/gui/beos/VlcWrapper.cpp
View file @
843ab7ad
...
...
@@ -2,7 +2,7 @@
* VlcWrapper.cpp: BeOS plugin for vlc (derived from MacOS X port)
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: VlcWrapper.cpp,v 1.3
1 2003/05/30 17:30:54
titer Exp $
* $Id: VlcWrapper.cpp,v 1.3
2 2003/05/30 18:43:31
titer Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
@@ -809,12 +809,22 @@ bool VlcWrapper::IsMuted()
* 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
);
}
...
...
modules/gui/beos/VlcWrapper.h
View file @
843ab7ad
...
...
@@ -2,7 +2,7 @@
* VlcWrapper.h: BeOS plugin for vlc (derived from MacOS X port)
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: VlcWrapper.h,v 1.2
4 2003/05/30 17:30:54
titer Exp $
* $Id: VlcWrapper.h,v 1.2
5 2003/05/30 18:43:31
titer Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
@@ -66,9 +66,8 @@ public:
VlcWrapper
(
intf_thread_t
*
p_intf
);
~
VlcWrapper
();
void
UpdateInput
();
/* Input */
void
UpdateInput
();
bool
HasInput
();
int
InputStatus
();
int
InputRate
();
...
...
@@ -126,6 +125,7 @@ public:
bool
IsMuted
();
/* DVD */
bool
IsUsingMenus
();
bool
HasTitles
();
BList
*
GetTitles
();
void
PrevTitle
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment