Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
d1e3b4ad
Commit
d1e3b4ad
authored
Jan 17, 2003
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the 'Do not use DVD menus' check box.
parent
a5d19ec4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
23 deletions
+20
-23
modules/gui/beos/InterfaceWindow.cpp
modules/gui/beos/InterfaceWindow.cpp
+2
-1
modules/gui/beos/PreferencesWindow.cpp
modules/gui/beos/PreferencesWindow.cpp
+9
-13
modules/gui/beos/PreferencesWindow.h
modules/gui/beos/PreferencesWindow.h
+3
-3
modules/gui/beos/VlcWrapper.cpp
modules/gui/beos/VlcWrapper.cpp
+4
-5
modules/gui/beos/VlcWrapper.h
modules/gui/beos/VlcWrapper.h
+2
-1
No files found.
modules/gui/beos/InterfaceWindow.cpp
View file @
d1e3b4ad
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* InterfaceWindow.cpp: beos interface
* InterfaceWindow.cpp: beos interface
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: InterfaceWindow.cpp,v 1.1
8 2003/01/16 15:26:2
3 titer Exp $
* $Id: InterfaceWindow.cpp,v 1.1
9 2003/01/17 18:19:4
3 titer Exp $
*
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* Samuel Hocevar <sam@zoy.org>
...
@@ -69,6 +69,7 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char *name,
...
@@ -69,6 +69,7 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char *name,
{
{
p_intf
=
p_interface
;
p_intf
=
p_interface
;
p_wrapper
=
p_intf
->
p_sys
->
p_wrapper
;
p_wrapper
=
p_intf
->
p_sys
->
p_wrapper
;
p_intf
->
p_sys
->
b_dvdold
=
false
;
fPlaylistIsEmpty
=
(
p_wrapper
->
PlaylistSize
()
<
0
);
fPlaylistIsEmpty
=
(
p_wrapper
->
PlaylistSize
()
<
0
);
...
...
modules/gui/beos/PreferencesWindow.cpp
View file @
d1e3b4ad
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* PreferencesWindow.cpp: beos interface
* PreferencesWindow.cpp: beos interface
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: PreferencesWindow.cpp,v 1.
7 2003/01/16 15:26:2
3 titer Exp $
* $Id: PreferencesWindow.cpp,v 1.
8 2003/01/17 18:19:4
3 titer Exp $
*
*
* Authors: Eric Petit <titer@videolan.org>
* Authors: Eric Petit <titer@videolan.org>
*
*
...
@@ -75,13 +75,9 @@ PreferencesWindow::PreferencesWindow( BRect frame, const char* name,
...
@@ -75,13 +75,9 @@ PreferencesWindow::PreferencesWindow( BRect frame, const char* name,
rect
=
fGeneralView
->
Bounds
();
rect
=
fGeneralView
->
Bounds
();
rect
.
InsetBy
(
10
,
10
);
rect
.
InsetBy
(
10
,
10
);
rect
.
bottom
=
rect
.
top
+
10
;
rect
.
bottom
=
rect
.
top
+
10
;
fOldDvdCheck
=
new
BCheckBox
(
rect
,
"olddvd"
,
"Do not use DVD menus"
,
fDvdOldCheck
=
new
BCheckBox
(
rect
,
"dvdold"
,
"Do not use DVD menus"
,
new
BMessage
(
OLDDVD_CHECK
)
);
new
BMessage
(
DVDOLD_CHECK
)
);
fGeneralView
->
AddChild
(
fOldDvdCheck
);
fGeneralView
->
AddChild
(
fDvdOldCheck
);
fprintf
(
stderr
,
"%s
\n
"
,
config_GetPsz
(
p_intf
,
"access"
)
);
if
(
config_GetPsz
(
p_intf
,
"access"
)
&&
!
strncmp
(
config_GetPsz
(
p_intf
,
"access"
),
"dvdold,any"
,
10
)
)
fOldDvdCheck
->
SetValue
(
1
);
rect
.
top
=
rect
.
bottom
+
20
;
rect
.
top
=
rect
.
bottom
+
20
;
rect
.
bottom
=
rect
.
top
+
30
;
rect
.
bottom
=
rect
.
top
+
30
;
...
@@ -177,7 +173,7 @@ void PreferencesWindow::MessageReceived( BMessage * p_message )
...
@@ -177,7 +173,7 @@ void PreferencesWindow::MessageReceived( BMessage * p_message )
{
{
switch
(
p_message
->
what
)
switch
(
p_message
->
what
)
{
{
case
OLDDV
D_CHECK
:
case
DVDOL
D_CHECK
:
case
SLIDER_UPDATE
:
case
SLIDER_UPDATE
:
{
{
ApplyChanges
();
ApplyChanges
();
...
@@ -221,7 +217,7 @@ void PreferencesWindow::ReallyQuit()
...
@@ -221,7 +217,7 @@ void PreferencesWindow::ReallyQuit()
*****************************************************************************/
*****************************************************************************/
void
PreferencesWindow
::
SetDefaults
()
void
PreferencesWindow
::
SetDefaults
()
{
{
f
OldDv
dCheck
->
SetValue
(
0
);
f
DvdOl
dCheck
->
SetValue
(
0
);
fPpSlider
->
SetValue
(
0
);
fPpSlider
->
SetValue
(
0
);
fBrightnessSlider
->
SetValue
(
100
);
fBrightnessSlider
->
SetValue
(
100
);
fContrastSlider
->
SetValue
(
100
);
fContrastSlider
->
SetValue
(
100
);
...
@@ -234,10 +230,10 @@ void PreferencesWindow::SetDefaults()
...
@@ -234,10 +230,10 @@ void PreferencesWindow::SetDefaults()
*****************************************************************************/
*****************************************************************************/
void
PreferencesWindow
::
ApplyChanges
()
void
PreferencesWindow
::
ApplyChanges
()
{
{
if
(
f
OldDv
dCheck
->
Value
()
)
if
(
f
DvdOl
dCheck
->
Value
()
)
config_PutPsz
(
p_intf
,
"access"
,
"dvdold,any"
)
;
p_intf
->
p_sys
->
b_dvdold
=
true
;
else
else
config_PutPsz
(
p_intf
,
"access"
,
NULL
)
;
p_intf
->
p_sys
->
b_dvdold
=
false
;
config_PutInt
(
p_intf
,
"ffmpeg-pp-q"
,
fPpSlider
->
Value
()
);
config_PutInt
(
p_intf
,
"ffmpeg-pp-q"
,
fPpSlider
->
Value
()
);
config_PutFloat
(
p_intf
,
"brightness"
,
config_PutFloat
(
p_intf
,
"brightness"
,
...
...
modules/gui/beos/PreferencesWindow.h
View file @
d1e3b4ad
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* PreferencesWindow.h
* PreferencesWindow.h
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: PreferencesWindow.h,v 1.
5 2003/01/16 15:26:2
3 titer Exp $
* $Id: PreferencesWindow.h,v 1.
6 2003/01/17 18:19:4
3 titer Exp $
*
*
* Authors: Eric Petit <titer@videolan.org>
* Authors: Eric Petit <titer@videolan.org>
*
*
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
#define PREFS_SAVE 'prsa'
#define PREFS_SAVE 'prsa'
#define PREFS_DEFAULTS 'prde'
#define PREFS_DEFAULTS 'prde'
#define SLIDER_UPDATE 'slup'
#define SLIDER_UPDATE 'slup'
#define
OLDDVD_CHECK 'ol
ch'
#define
DVDOLD_CHECK 'dv
ch'
class
PreferencesWindow
:
public
BWindow
class
PreferencesWindow
:
public
BWindow
{
{
...
@@ -54,7 +54,7 @@ class PreferencesWindow : public BWindow
...
@@ -54,7 +54,7 @@ class PreferencesWindow : public BWindow
BView
*
fAdjustView
;
BView
*
fAdjustView
;
BTab
*
fGeneralTab
;
BTab
*
fGeneralTab
;
BTab
*
fAdjustTab
;
BTab
*
fAdjustTab
;
BCheckBox
*
f
OldDv
dCheck
;
BCheckBox
*
f
DvdOl
dCheck
;
BSlider
*
fPpSlider
;
BSlider
*
fPpSlider
;
BSlider
*
fContrastSlider
;
BSlider
*
fContrastSlider
;
BSlider
*
fBrightnessSlider
;
BSlider
*
fBrightnessSlider
;
...
...
modules/gui/beos/VlcWrapper.cpp
View file @
d1e3b4ad
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* VlcWrapper.cpp: BeOS plugin for vlc (derived from MacOS X port)
* VlcWrapper.cpp: BeOS plugin for vlc (derived from MacOS X port)
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: VlcWrapper.cpp,v 1.
19 2003/01/14 22:03:38
titer Exp $
* $Id: VlcWrapper.cpp,v 1.
20 2003/01/17 18:19:43
titer Exp $
*
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
* Jon Lech Johansen <jon-vl@nanocrew.net>
...
@@ -252,10 +252,9 @@ void VlcWrapper::openFiles( BList* o_files, bool replace )
...
@@ -252,10 +252,9 @@ void VlcWrapper::openFiles( BList* o_files, bool replace )
void
VlcWrapper
::
openDisc
(
BString
o_type
,
BString
o_device
,
int
i_title
,
int
i_chapter
)
void
VlcWrapper
::
openDisc
(
BString
o_type
,
BString
o_device
,
int
i_title
,
int
i_chapter
)
{
{
BString
o_source
(
""
);
if
(
p_intf
->
p_sys
->
b_dvdold
)
o_source
<<
o_type
<<
":"
<<
o_device
;
o_device
.
Prepend
(
"dvdold:"
);
playlist_Add
(
p_playlist
,
o_device
.
String
(),
playlist_Add
(
p_playlist
,
o_source
.
String
(),
PLAYLIST_APPEND
|
PLAYLIST_GO
,
PLAYLIST_END
);
PLAYLIST_APPEND
|
PLAYLIST_GO
,
PLAYLIST_END
);
}
}
...
...
modules/gui/beos/VlcWrapper.h
View file @
d1e3b4ad
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* VlcWrapper.h: BeOS plugin for vlc (derived from MacOS X port)
* VlcWrapper.h: BeOS plugin for vlc (derived from MacOS X port)
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: VlcWrapper.h,v 1.1
3 2003/01/14 14:48:55
titer Exp $
* $Id: VlcWrapper.h,v 1.1
4 2003/01/17 18:19:43
titer Exp $
*
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
* Jon Lech Johansen <jon-vl@nanocrew.net>
...
@@ -42,6 +42,7 @@ struct intf_sys_t
...
@@ -42,6 +42,7 @@ struct intf_sys_t
int
i_part
;
int
i_part
;
audio_volume_t
i_saved_volume
;
audio_volume_t
i_saved_volume
;
int
i_channel
;
int
i_channel
;
bool
b_dvdold
;
VlcWrapper
*
p_wrapper
;
VlcWrapper
*
p_wrapper
;
};
};
...
...
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