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
2e8031b4
Commit
2e8031b4
authored
Jun 08, 2002
by
Loïc Minier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./configure.in: checking for the header should be enough in most cases
* ./plugins/xosd/xosd.c: configuration options
parent
a5e3711f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
63 deletions
+48
-63
configure
configure
+15
-55
configure.in
configure.in
+1
-1
plugins/xosd/xosd.c
plugins/xosd/xosd.c
+32
-7
No files found.
configure
View file @
2e8031b4
...
...
@@ -8282,48 +8282,8 @@ fi
rm
-f
conftest
*
fi
if
eval
"test
\"
`
echo
'$ac_cv_header_'
$ac_safe
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
echo
$ac_n
"checking for xosd_init in -lxosd""...
$ac_c
"
1>&6
echo
"configure:8288: checking for xosd_init in -lxosd"
>
&5
ac_lib_var
=
`
echo
xosd
'_'
xosd_init |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lxosd
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 8296 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char xosd_init();
int main() {
xosd_init()
; return 0; }
EOF
if
{
(
eval echo
configure:8307:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=no"
fi
rm
-f
conftest
*
LIBS
=
"
$ac_save_LIBS
"
fi
if
eval
"test
\"
`
echo
'$ac_cv_lib_'
$ac_lib_var
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
have_xosd
=
"true"
else
echo
"
$ac_t
""no"
1>&6
have_xosd
=
"false"
fi
else
echo
"
$ac_t
""no"
1>&6
have_xosd
=
"false"
...
...
@@ -8346,17 +8306,17 @@ if test x$enable_lirc = xyes
then
ac_safe
=
`
echo
"lirc/lirc_client.h"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for lirc/lirc_client.h""...
$ac_c
"
1>&6
echo
"configure:83
5
0: checking for lirc/lirc_client.h"
>
&5
echo
"configure:83
1
0: checking for lirc/lirc_client.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 83
5
5 "configure"
#line 83
1
5 "configure"
#include "confdefs.h"
#include <lirc/lirc_client.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:83
6
0:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:83
2
0:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -8373,7 +8333,7 @@ fi
if
eval
"test
\"
`
echo
'$ac_cv_header_'
$ac_safe
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
echo
$ac_n
"checking for lirc_init in -llirc_client""...
$ac_c
"
1>&6
echo
"configure:83
7
7: checking for lirc_init in -llirc_client"
>
&5
echo
"configure:83
3
7: checking for lirc_init in -llirc_client"
>
&5
ac_lib_var
=
`
echo
lirc_client
'_'
lirc_init |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -8381,7 +8341,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-llirc_client
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 83
8
5 "configure"
#line 83
4
5 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -8392,7 +8352,7 @@ int main() {
lirc_init()
; return 0; }
EOF
if
{
(
eval echo
configure:83
9
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:83
5
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -8447,7 +8407,7 @@ fi
;;
*
)
echo
$ac_n
"checking whether the byte order is big-endian""...
$ac_c
"
1>&6
echo
"configure:84
5
1: checking whether the byte order is big-endian"
>
&5
echo
"configure:84
1
1: checking whether the byte order is big-endian"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_bigendian
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -8529,7 +8489,7 @@ if test "${enable_pth+set}" = set; then
enableval
=
"
$enable_pth
"
if
test
"x
$enable_pth
"
=
"xyes"
;
then
echo
$ac_n
"checking for pth_init in -lpth""...
$ac_c
"
1>&6
echo
"configure:8
53
3: checking for pth_init in -lpth"
>
&5
echo
"configure:8
49
3: checking for pth_init in -lpth"
>
&5
ac_lib_var
=
`
echo
pth
'_'
pth_init |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -8537,7 +8497,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lpth
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 85
4
1 "configure"
#line 85
0
1 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -8548,7 +8508,7 @@ int main() {
pth_init()
; return 0; }
EOF
if
{
(
eval echo
configure:85
5
2:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:85
1
2:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -8576,7 +8536,7 @@ else
fi
cat
>
conftest.
$ac_ext
<<
EOF
#line 85
8
0 "configure"
#line 85
4
0 "configure"
#include "confdefs.h"
#include <pth.h>
EOF
...
...
@@ -8602,7 +8562,7 @@ if test "${enable_st+set}" = set; then
enableval
=
"
$enable_st
"
if
test
"x
$enable_st
"
=
"xyes"
;
then
echo
$ac_n
"checking for st_init in -lst""...
$ac_c
"
1>&6
echo
"configure:8
60
6: checking for st_init in -lst"
>
&5
echo
"configure:8
56
6: checking for st_init in -lst"
>
&5
ac_lib_var
=
`
echo
st
'_'
st_init |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -8610,7 +8570,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lst
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 8
61
4 "configure"
#line 8
57
4 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -8621,7 +8581,7 @@ int main() {
st_init()
; return 0; }
EOF
if
{
(
eval echo
configure:8
62
5:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:8
58
5:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -8649,7 +8609,7 @@ else
fi
cat
>
conftest.
$ac_ext
<<
EOF
#line 86
5
3 "configure"
#line 86
1
3 "configure"
#include "confdefs.h"
#include <st.h>
EOF
...
...
configure.in
View file @
2e8031b4
...
...
@@ -1503,7 +1503,7 @@ AC_ARG_ENABLE(xosd,
[ --enable-xosd xosd interface support (default disabled)])
if test x$enable_xosd = xyes
then
AC_CHECK_HEADER(xosd.h,
AC_CHECK_LIB(xosd, xosd_init, have_xosd="true", have_xosd="false"),
have_xosd="false")
AC_CHECK_HEADER(xosd.h,
have_xosd="true",
have_xosd="false")
if test x$have_xosd = xtrue
then
PLUGINS="${PLUGINS} xosd"
...
...
plugins/xosd/xosd.c
View file @
2e8031b4
...
...
@@ -2,7 +2,7 @@
* xosd.c : X On Screen Display interface
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: xosd.c,v 1.
1 2002/06/07 22:41:50
lool Exp $
* $Id: xosd.c,v 1.
2 2002/06/08 01:41:22
lool Exp $
*
* Authors: Loc Minier <lool@videolan.org>
*
...
...
@@ -58,7 +58,22 @@ static void intf_Run ( intf_thread_t *p_intf );
/*****************************************************************************
* Build configuration tree.
*****************************************************************************/
#define POSITION_TEXT N_("flip vertical position")
#define POSITION_LONGTEXT N_("Display xosd output on the bottom of the " \
"screen instead of the top")
#define OFFSET_TEXT N_("vertical offset")
#define OFFSET_LONGTEXT N_("Vertical position offset of the text " \
"displayed in pixels")
#define FONT_TEXT N_("font")
#define FONT_LONGTEXT N_("Font used to display text in the xosd output")
MODULE_CONFIG_START
ADD_CATEGORY_HINT
(
N_
(
"Miscellaneous"
),
NULL
)
ADD_BOOL
(
"xosd-position"
,
0
,
NULL
,
POSITION_TEXT
,
POSITION_LONGTEXT
)
ADD_INTEGER
(
"xosd-text-offset"
,
0
,
NULL
,
OFFSET_TEXT
,
OFFSET_LONGTEXT
)
ADD_STRING
(
"xosd-font"
,
"fixed"
,
NULL
,
FONT_TEXT
,
FONT_LONGTEXT
)
MODULE_CONFIG_STOP
MODULE_INIT_START
...
...
@@ -87,7 +102,7 @@ static void intf_getfunctions( function_list_t * p_function_list )
/*****************************************************************************
* intf_Open: initialize and create stuff
*****************************************************************************/
static
int
intf_Open
(
intf_thread_t
*
p_intf
)
static
int
intf_Open
(
intf_thread_t
*
p_intf
)
{
/* Allocate instance and initialize some members */
p_intf
->
p_sys
=
(
intf_sys_t
*
)
malloc
(
sizeof
(
intf_sys_t
)
);
...
...
@@ -99,14 +114,15 @@ static int intf_Open( intf_thread_t *p_intf )
/* Initialize library */
p_intf
->
p_sys
->
p_osd
=
xosd_init
(
"-*-lucidatypewriter-medium-r-normal-*-*-250-*-*-*-*-*-*"
,
"LawnGreen"
,
3
,
XOSD_top
,
0
,
1
);
xosd_init
(
"fixed"
,
"LawnGreen"
,
3
,
XOSD_top
,
0
,
1
);
/* Initialize to NULL */
p_intf
->
p_sys
->
psz_source
=
NULL
;
xosd_display
(
p_intf
->
p_sys
->
p_osd
,
0
,
XOSD_string
,
"xosd interface initialized"
);
0
,
XOSD_string
,
"xosd interface initialized"
);
return
(
0
);
}
...
...
@@ -160,9 +176,18 @@ static void intf_Run( intf_thread_t *p_intf )
p_intf
->
p_sys
->
psz_source
=
strdup
(
p_intf
->
p_sys
->
p_input
->
psz_source
);
xosd_display
(
p_intf
->
p_sys
->
p_osd
,
0
,
XOSD_string
,
/* Set user preferences */
xosd_set_font
(
p_intf
->
p_sys
->
p_osd
,
config_GetPsz
(
p_intf
,
"xosd-font"
)
);
xosd_set_offset
(
p_intf
->
p_sys
->
p_osd
,
config_GetInt
(
p_intf
,
"xosd-text-offset"
)
);
xosd_set_pos
(
p_intf
->
p_sys
->
p_osd
,
config_GetInt
(
p_intf
,
"xosd-position"
)
?
XOSD_bottom
:
XOSD_top
);
/* Display */
xosd_display
(
p_intf
->
p_sys
->
p_osd
,
0
,
/* first line */
XOSD_string
,
p_intf
->
p_sys
->
psz_source
);
printf
(
"douze %s
\n
"
,
p_intf
->
p_sys
->
psz_source
);
}
}
...
...
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