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
7c26f655
Commit
7c26f655
authored
Jun 03, 2003
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules/gui/beos/* : fixed the screenshot format selection I broke lately
parent
fd8929f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
modules/gui/beos/BeOS.cpp
modules/gui/beos/BeOS.cpp
+4
-2
modules/gui/beos/VideoOutput.cpp
modules/gui/beos/VideoOutput.cpp
+15
-4
No files found.
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/05/07 14:49:1
9 titer Exp $
* $Id: BeOS.cpp,v 1.1
1 2003/06/03 12: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/05/08 10:40:31
titer Exp $
* $Id: VideoOutput.cpp,v 1.
20 2003/06/03 12: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
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