Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
7c26f655
Commit
7c26f655
authored
Jun 03, 2003
by
Eric Petit
Browse files
modules/gui/beos/* : fixed the screenshot format selection I broke lately
parent
fd8929f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/gui/beos/BeOS.cpp
View file @
7c26f655
...
...
@@ -2,7 +2,7 @@
* beos.cpp : BeOS plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: BeOS.cpp,v 1.1
0
2003/0
5
/0
7
1
4:49:1
9 titer Exp $
* $Id: BeOS.cpp,v 1.1
1
2003/0
6
/0
3
1
2:06:2
9 titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -46,10 +46,12 @@ void E_(CloseVideo) ( vlc_object_t * );
/*****************************************************************************
* Module descriptor
*****************************************************************************/
static
char
*
ppsz_screenshotformat
[]
=
{
"TGA"
,
"PPM"
,
"PNG"
,
"JPEG"
,
"BMP"
,
NULL
};
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
);
add_string
_from_list
(
"beos-screenshotformat"
,
"PNG"
,
ppsz_screenshotformat
,
NULL
,
"Screenshot Format"
,
""
,
VLC_TRUE
);
set_description
(
_
(
"BeOS standard API interface"
)
);
add_submodule
();
set_capability
(
"interface"
,
100
);
...
...
modules/gui/beos/VideoOutput.cpp
View file @
7c26f655
...
...
@@ -2,7 +2,7 @@
* vout_beos.cpp: beos video output display method
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: VideoOutput.cpp,v 1.
19
2003/0
5
/0
8
1
0:40:31
titer Exp $
* $Id: VideoOutput.cpp,v 1.
20
2003/0
6
/0
3
1
2:06:29
titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -383,12 +383,23 @@ VideoWindow::MessageReceived( BMessage *p_message )
dst
+=
dstBpr
;
src
+=
srcBpr
;
}
char
*
path
=
config_GetPsz
(
p_vout
,
"beos-screenshotpath"
);
char
*
path
=
config_GetPsz
(
p_vout
,
"beos-screenshotpath"
);
if
(
!
path
)
path
=
strdup
(
DEFAULT_SCREEN_SHOT_PATH
);
/* TODO: handle the format */
/* config_GetPsz( p_vout, "beos-screenshotformat" ); */
/* FIXME - we should check which translators are
actually available */
char
*
psz_format
=
config_GetPsz
(
p_vout
,
"beos-screenshotformat"
);
int32
format
=
DEFAULT_SCREEN_SHOT_FORMAT
;
if
(
!
strcmp
(
psz_format
,
"TGA"
)
)
format
=
'
TGA
'
;
else
if
(
!
strcmp
(
psz_format
,
"PPM"
)
)
format
=
'
PPM
'
;
else
if
(
!
strcmp
(
psz_format
,
"JPEG"
)
)
format
=
'
JPEG
'
;
else
if
(
!
strcmp
(
psz_format
,
"BMP"
)
)
format
=
'
BMP
'
;
_SaveScreenShot
(
temp
,
path
,
format
);
}
else
...
...
Write
Preview
Supports
Markdown
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