Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
4b453a7a
Commit
4b453a7a
authored
Nov 10, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to enable OSD menu
parent
812ba37d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
8 deletions
+82
-8
configure.ac
configure.ac
+11
-5
modules/misc/Modules.am
modules/misc/Modules.am
+3
-2
src/Makefile.am
src/Makefile.am
+4
-1
src/missing.c
src/missing.c
+64
-0
No files found.
configure.ac
View file @
4b453a7a
...
...
@@ -2653,18 +2653,17 @@ dnl PNG decoder module
dnl
AC_ARG_ENABLE(png,
[ --enable-png PNG support (default enabled)])
if test "${enable_png}" != "no"; then
AS_IF([test "${enable_png}" != "no"], [
AC_CHECK_HEADERS(png.h, [
VLC_SAVE_FLAGS
LDFLAGS="${LDFLAGS} -lz $LIBM"
AC_CHECK_LIB(png, png_set_rows, [
VLC_ADD_LIBS([png],[-lpng -lz $LIBM])
VLC_ADD_PLUGIN([png
osdmenu osd_parser])],
[],[-lz $LIBM]
)
VLC_ADD_PLUGIN([png
])
], [], [-lz $LIBM]
)
VLC_RESTORE_FLAGS
])
fi
AM_CONDITIONAL(BUILD_OSDMENU, [test "${enable_png}" != "no"])
])
dnl
dnl H264 encoder plugin (10-bit lib264)
...
...
@@ -3757,6 +3756,13 @@ AS_IF([test "${enable_atmo}" != no], [
])
])
AC_ARG_ENABLE(osdmenu,
AS_HELP_STRING([--enable-osdmenu],[OSD menu (default disabled)]),, [
enable_osdmenu="no"
])
AM_CONDITIONAL(BUILD_OSDMENU, [test "${enable_osdmenu}" != "no"])
EXTEND_HELP_STRING([Service Discovery plugins:])
dnl
dnl Bonjour services discovery
...
...
modules/misc/Modules.am
View file @
4b453a7a
...
...
@@ -32,8 +32,9 @@ libosd_parser_plugin_la_SOURCES = \
osd/parser.c osd/osd_menu.c osd/osd_menu.h osd/simple.c osd/xml.c
libosd_parser_plugin_la_CFLAGS = $(AM_CFLAGS)
libosd_parser_plugin_la_LIBADD = $(AM_LIBADD)
EXTRA_LTLIBRARIES += libosd_parser_plugin.la
libvlc_LTLIBRARIES += $(LTLIBosd_parser)
if BUILD_OSDMENU
libvlc_LTLIBRARIES += libosd_parser_plugin.la
endif
libxdg_screensaver_plugin_la_SOURCES = inhibit/xdg.c
libxdg_screensaver_plugin_la_CFLAGS = $(AM_CFLAGS)
...
...
src/Makefile.am
View file @
4b453a7a
...
...
@@ -245,6 +245,10 @@ if ENABLE_VLM
libvlccore_la_SOURCES
+=
$(SOURCES_libvlc_vlm)
endif
endif
if
BUILD_OSDMENU
libvlccore_la_SOURCES
+=
osd/osd.c
AM_CPPFLAGS
+=
-DOSDMENU
endif
SOURCES_libvlc_darwin
=
\
posix/darwin_dirs.c
\
...
...
@@ -412,7 +416,6 @@ SOURCES_libvlc_common = \
audio_output/input.c
\
audio_output/output.c
\
audio_output/volume.c
\
osd/osd.c
\
network/getaddrinfo.c
\
network/io.c
\
network/tcp.c
\
...
...
src/missing.c
View file @
4b453a7a
...
...
@@ -439,3 +439,67 @@ ml_person_t* ml_GetPersonsFromMedia( media_library_t* p_ml,
return
NULL
;
}
#endif
/* !MEDIA_LIBRARY */
#ifndef OSDMENU
# include <vlc_osd.h>
osd_menu_t
*
(
osd_MenuCreate
)
(
vlc_object_t
*
obj
,
const
char
*
file
)
{
msg_Err
(
obj
,
"OSD menu not supported: %s"
,
file
);
return
NULL
;
}
void
(
osd_MenuDelete
)
(
vlc_object_t
*
obj
,
osd_menu_t
*
osd
)
{
(
void
)
obj
;
(
void
)
osd
;
assert
(
0
);
}
void
(
osd_MenuShow
)
(
vlc_object_t
*
obj
)
{
msg_Err
(
obj
,
"OSD menu not supported"
);
}
void
(
osd_MenuHide
)
(
vlc_object_t
*
obj
)
{
msg_Err
(
obj
,
"OSD menu not supported"
);
}
void
(
osd_MenuActivate
)
(
vlc_object_t
*
obj
)
{
msg_Err
(
obj
,
"OSD menu not supported"
);
}
void
(
osd_MenuNext
)
(
vlc_object_t
*
obj
)
{
msg_Err
(
obj
,
"OSD menu not supported"
);
}
void
(
osd_MenuPrev
)
(
vlc_object_t
*
obj
)
{
msg_Err
(
obj
,
"OSD menu not supported"
);
}
void
(
osd_MenuUp
)
(
vlc_object_t
*
obj
)
{
msg_Err
(
obj
,
"OSD menu not supported"
);
}
void
(
osd_MenuDown
)
(
vlc_object_t
*
obj
)
{
msg_Err
(
obj
,
"OSD menu not supported"
);
}
osd_button_t
*
(
osd_ButtonFind
)
(
vlc_object_t
*
obj
,
int
x
,
int
y
,
int
wh
,
int
ww
,
int
sw
,
int
sh
)
{
(
void
)
obj
;
(
void
)
x
;
(
void
)
y
;
(
void
)
wh
;
(
void
)
ww
;
(
void
)
sw
;
(
void
)
sh
;
return
NULL
;
}
void
(
osd_ButtonSelect
)
(
vlc_object_t
*
obj
,
osd_button_t
*
btn
)
{
(
void
)
obj
;
(
void
)
btn
;
assert
(
0
);
}
#endif
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