Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
5045d3df
Commit
5045d3df
authored
Apr 19, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xosd: requiere a not so old version.
parent
2bf4c691
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
23 deletions
+7
-23
configure.ac
configure.ac
+6
-13
modules/misc/notify/xosd.c
modules/misc/notify/xosd.c
+1
-10
No files found.
configure.ac
View file @
5045d3df
...
...
@@ -5208,19 +5208,12 @@ AC_ARG_ENABLE(xosd,
[ --enable-xosd xosd interface support (default disabled)])
if test "${enable_xosd}" = "yes"
then
AC_CHECK_HEADER(xosd.h, have_xosd="true", have_xosd="false")
AC_CHECK_LIB(xosd,xosd_set_offset,
AC_DEFINE(HAVE_XOSD_VERSION_1, 1, Define if <xosd.h> is 1.0.x),
AC_CHECK_LIB(xosd,xosd_set_horizontal_offset,
AC_DEFINE(HAVE_XOSD_VERSION_2, 1, Define if <xosd.h> is 2.0.x),
AC_TRY_COMPILE([#include <xosd.h>],
[xosd_init("foo","bar",12,XOSD_top,2,12,42);],,
AC_DEFINE(HAVE_XOSD_VERSION_0, 1, Define if <xosd.h> is pre-1.0.0))))
if test "${have_xosd}" = "true"
then
VLC_ADD_PLUGIN([xosd])
VLC_ADD_LIBS([xosd],[-lxosd])
fi
AC_CHECK_HEADERS(xosd.h,
AC_CHECK_LIB(xosd, xosd_set_horizontal_offset, [
VLC_ADD_PLUGIN([xosd])
VLC_ADD_LIBS([xosd],[-lxosd])
])
)
fi
dnl
...
...
modules/misc/notify/xosd.c
View file @
5045d3df
...
...
@@ -125,15 +125,7 @@ static int Open( vlc_object_t *p_this )
psz_font
=
config_GetPsz
(
p_intf
,
"xosd-font"
);
psz_colour
=
config_GetPsz
(
p_intf
,
"xosd-colour"
);
#if defined(HAVE_XOSD_VERSION_0) || defined(HAVE_XOSD_VERSION_1)
p_osd
=
xosd_init
(
psz_font
,
psz_colour
,
3
,
config_GetInt
(
p_intf
,
"xosd-position"
)
?
XOSD_bottom
:
XOSD_top
,
config_GetInt
(
p_intf
,
"xosd-text-offset"
),
config_GetInt
(
p_intf
,
"xosd-shadow-offset"
),
1
);
#else
p_osd
=
xosd_create
(
1
);
#endif
if
(
p_osd
==
NULL
)
{
msg_Err
(
p_intf
,
"couldn't initialize libxosd"
);
...
...
@@ -146,7 +138,6 @@ static int Open( vlc_object_t *p_this )
/* Set user preferences */
xosd_set_outline_colour
(
p_osd
,
"black"
);
#ifdef HAVE_XOSD_VERSION_2
xosd_set_font
(
p_osd
,
psz_font
);
xosd_set_colour
(
p_osd
,
psz_colour
);
xosd_set_timeout
(
p_osd
,
3
);
...
...
@@ -158,7 +149,7 @@ static int Open( vlc_object_t *p_this )
config_GetInt
(
p_intf
,
"xosd-text-offset"
)
);
xosd_set_shadow_offset
(
p_osd
,
config_GetInt
(
p_intf
,
"xosd-shadow-offset"
));
#endif
/* Initialize to NULL */
xosd_display
(
p_osd
,
0
,
XOSD_string
,
"XOSD interface initialized"
);
...
...
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