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
ec48ad6c
Commit
ec48ad6c
authored
May 07, 2003
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules/gui/beos/*: fixed a few things I broke recently (dvd menus,
screenshots...)
parent
afb1dbb6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
27 deletions
+17
-27
modules/gui/beos/BeOS.cpp
modules/gui/beos/BeOS.cpp
+4
-1
modules/gui/beos/InterfaceWindow.cpp
modules/gui/beos/InterfaceWindow.cpp
+3
-5
modules/gui/beos/VideoOutput.cpp
modules/gui/beos/VideoOutput.cpp
+6
-16
modules/gui/beos/VlcWrapper.cpp
modules/gui/beos/VlcWrapper.cpp
+3
-3
modules/gui/beos/VlcWrapper.h
modules/gui/beos/VlcWrapper.h
+1
-2
No files found.
modules/gui/beos/BeOS.cpp
View file @
ec48ad6c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* beos.cpp : BeOS plugin for vlc
* beos.cpp : BeOS plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* Copyright (C) 2000, 2001 VideoLAN
* $Id: BeOS.cpp,v 1.
9 2003/05/03 13:37:21
titer Exp $
* $Id: BeOS.cpp,v 1.
10 2003/05/07 14:49:19
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>
...
@@ -47,6 +47,9 @@ void E_(CloseVideo) ( vlc_object_t * );
...
@@ -47,6 +47,9 @@ void E_(CloseVideo) ( vlc_object_t * );
* Module descriptor
* Module descriptor
*****************************************************************************/
*****************************************************************************/
vlc_module_begin
();
vlc_module_begin
();
add_bool
(
"beos-dvdmenus"
,
0
,
NULL
,
"Use DVD Menus"
,
""
,
VLC_TRUE
);
add_string
(
"beos-screenshotpath"
,
"/boot/home/"
,
NULL
,
"Screenshot Path"
,
""
,
VLC_TRUE
);
add_string
(
"beos-screenshotformat"
,
NULL
,
NULL
,
"Screenshot Format"
,
""
,
VLC_TRUE
);
set_description
(
_
(
"BeOS standard API interface"
)
);
set_description
(
_
(
"BeOS standard API interface"
)
);
add_submodule
();
add_submodule
();
set_capability
(
"interface"
,
100
);
set_capability
(
"interface"
,
100
);
...
...
modules/gui/beos/InterfaceWindow.cpp
View file @
ec48ad6c
...
@@ -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.3
6 2003/05/05 13:06:02
titer Exp $
* $Id: InterfaceWindow.cpp,v 1.3
7 2003/05/07 14:49:19
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>
...
@@ -189,9 +189,6 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char* name,
...
@@ -189,9 +189,6 @@ InterfaceWindow::InterfaceWindow( BRect frame, const char* name,
fSettings
(
new
BMessage
(
'
sett
'
)
),
fSettings
(
new
BMessage
(
'
sett
'
)
),
p_wrapper
(
p_intf
->
p_sys
->
p_wrapper
)
p_wrapper
(
p_intf
->
p_sys
->
p_wrapper
)
{
{
// TODO: ?!? what about user settings?
p_intf
->
p_sys
->
b_dvdmenus
=
false
;
fPlaylistIsEmpty
=
!
(
p_wrapper
->
PlaylistSize
()
>
0
);
fPlaylistIsEmpty
=
!
(
p_wrapper
->
PlaylistSize
()
>
0
);
BScreen
screen
;
BScreen
screen
;
...
@@ -849,7 +846,8 @@ InterfaceWindow::_SetMenusEnabled(bool hasFile, bool hasChapters, bool hasTitles
...
@@ -849,7 +846,8 @@ InterfaceWindow::_SetMenusEnabled(bool hasFile, bool hasChapters, bool hasTitles
if
(
fSpeedMenu
->
IsEnabled
()
!=
hasFile
)
if
(
fSpeedMenu
->
IsEnabled
()
!=
hasFile
)
fSpeedMenu
->
SetEnabled
(
hasFile
);
fSpeedMenu
->
SetEnabled
(
hasFile
);
// "goto menu" menu item
// "goto menu" menu item
bool
hasMenu
=
p_intf
->
p_sys
->
b_dvdmenus
?
hasTitles
:
false
;
bool
hasMenu
=
config_GetInt
(
p_intf
,
"beos-dvdmenus"
)
?
hasTitles
:
false
;
if
(
fGotoMenuMI
->
IsEnabled
()
!=
hasMenu
)
if
(
fGotoMenuMI
->
IsEnabled
()
!=
hasMenu
)
fGotoMenuMI
->
SetEnabled
(
hasMenu
);
fGotoMenuMI
->
SetEnabled
(
hasMenu
);
Unlock
();
Unlock
();
...
...
modules/gui/beos/VideoOutput.cpp
View file @
ec48ad6c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vout_beos.cpp: beos video output display method
* vout_beos.cpp: beos video output display method
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* Copyright (C) 2000, 2001 VideoLAN
* $Id: VideoOutput.cpp,v 1.1
7 2003/04/22 16:36:16
titer Exp $
* $Id: VideoOutput.cpp,v 1.1
8 2003/05/07 14:49:19
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>
...
@@ -381,10 +381,11 @@ VideoWindow::MessageReceived( BMessage *p_message )
...
@@ -381,10 +381,11 @@ VideoWindow::MessageReceived( BMessage *p_message )
dst
+=
dstBpr
;
dst
+=
dstBpr
;
src
+=
srcBpr
;
src
+=
srcBpr
;
}
}
char
*
path
=
config_GetPsz
(
p_vout
,
"beos-screenshot
-
path"
);
char
*
path
=
config_GetPsz
(
p_vout
,
"beos-screenshotpath"
);
if
(
!
path
)
if
(
!
path
)
path
=
strdup
(
DEFAULT_SCREEN_SHOT_PATH
);
path
=
strdup
(
DEFAULT_SCREEN_SHOT_PATH
);
int32
format
=
config_GetInt
(
p_vout
,
"beos-screenshot-format"
);
/* config_GetPsz( p_vout, "beos-screenshotformat" ); */
int32
format
=
DEFAULT_SCREEN_SHOT_FORMAT
;
_SaveScreenShot
(
temp
,
path
,
format
);
_SaveScreenShot
(
temp
,
path
,
format
);
}
}
else
else
...
@@ -911,19 +912,8 @@ VideoWindow::_save_screen_shot( void* cookie )
...
@@ -911,19 +912,8 @@ VideoWindow::_save_screen_shot( void* cookie )
BString
path
(
info
->
path
);
BString
path
(
info
->
path
);
// create the folder if it doesn't exist
// create the folder if it doesn't exist
BString
folder
(
info
->
path
);
BString
folder
(
info
->
path
);
int32
pos
=
folder
.
FindLast
(
"/"
);
if
(
pos
>
0
)
{
pos
++
;
// leave the last '/' in the string
if
(
pos
==
path
.
Length
()
)
path
<<
"vlc screenshot"
;
else
{
int32
removeChars
=
folder
.
Length
()
-
pos
;
folder
.
Remove
(
pos
,
removeChars
);
}
create_directory
(
folder
.
String
(),
0777
);
create_directory
(
folder
.
String
(),
0777
);
}
path
<<
"/vlc screenshot"
;
BEntry
entry
(
path
.
String
()
);
BEntry
entry
(
path
.
String
()
);
int32
appendedNumber
=
0
;
int32
appendedNumber
=
0
;
if
(
entry
.
Exists
()
&&
!
entry
.
IsSymLink
()
)
if
(
entry
.
Exists
()
&&
!
entry
.
IsSymLink
()
)
...
...
modules/gui/beos/VlcWrapper.cpp
View file @
ec48ad6c
...
@@ -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.
29 2003/05/05 22:23:38 gbazin
Exp $
* $Id: VlcWrapper.cpp,v 1.
30 2003/05/07 14:49:19 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>
...
@@ -397,8 +397,8 @@ void VlcWrapper::OpenFiles( BList* o_files, bool replace, int32 index )
...
@@ -397,8 +397,8 @@ void VlcWrapper::OpenFiles( BList* o_files, bool replace, int32 index )
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
)
{
{
if
(
p_intf
->
p_sys
->
b_dvdmenus
)
if
(
config_GetInt
(
p_intf
,
"beos-dvdmenus"
)
)
o_device
.
Prepend
(
"dvd:"
);
o_device
.
Prepend
(
"dvd
play
:"
);
else
else
o_device
.
Prepend
(
"dvdold:"
);
o_device
.
Prepend
(
"dvdold:"
);
playlist_Add
(
p_playlist
,
o_device
.
String
(),
playlist_Add
(
p_playlist
,
o_device
.
String
(),
...
...
modules/gui/beos/VlcWrapper.h
View file @
ec48ad6c
...
@@ -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.2
1 2003/04/22 16:36:16
titer Exp $
* $Id: VlcWrapper.h,v 1.2
2 2003/05/07 14:49:19
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>
...
@@ -46,7 +46,6 @@ struct intf_sys_t
...
@@ -46,7 +46,6 @@ 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_dvdmenus
;
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