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
aaf55bf8
Commit
aaf55bf8
authored
Mar 29, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create OSD menu as a custom object
parent
1e8999a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
src/misc/objects.c
src/misc/objects.c
+0
-5
src/osd/osd.c
src/osd/osd.c
+3
-1
No files found.
src/misc/objects.c
View file @
aaf55bf8
...
...
@@ -53,7 +53,6 @@
#include "vlc_codec.h"
#include "vlc_filter.h"
#include "vlc_osd.h"
#include "vlc_meta.h"
#include "variables.h"
...
...
@@ -310,10 +309,6 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type )
i_size
=
sizeof
(
announce_handler_t
);
psz_type
=
"announce"
;
break
;
case
VLC_OBJECT_OSDMENU
:
i_size
=
sizeof
(
osd_menu_t
);
psz_type
=
"osd menu"
;
break
;
case
VLC_OBJECT_INTERACTION
:
i_size
=
sizeof
(
interaction_t
);
psz_type
=
"interaction"
;
...
...
src/osd/osd.c
View file @
aaf55bf8
...
...
@@ -67,8 +67,10 @@ static vlc_bool_t osd_isVisible( osd_menu_t *p_osd )
static
osd_menu_t
*
osd_ParserLoad
(
vlc_object_t
*
p_this
,
const
char
*
psz_file
)
{
osd_menu_t
*
p_menu
;
static
const
char
osdmenu_name
[]
=
"osd menu"
;
p_menu
=
vlc_object_create
(
p_this
,
VLC_OBJECT_OSDMENU
);
p_menu
=
vlc_custom_create
(
p_this
,
sizeof
(
*
p_menu
),
VLC_OBJECT_OSDMENU
,
osdmenu_name
);
if
(
!
p_menu
)
{
msg_Err
(
p_this
,
"out of memory"
);
...
...
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