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
64595f0c
Commit
64595f0c
authored
Aug 20, 2005
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Xosd interface (Debian #324039)
parent
48b0025a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
modules/visualization/xosd.c
modules/visualization/xosd.c
+14
-11
No files found.
modules/visualization/xosd.c
View file @
64595f0c
...
...
@@ -99,6 +99,7 @@ vlc_module_end();
static
int
Open
(
vlc_object_t
*
p_this
)
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
xosd
*
p_osd
;
/* Allocate instance and initialize some members */
p_intf
->
p_sys
=
(
intf_sys_t
*
)
malloc
(
sizeof
(
intf_sys_t
)
);
...
...
@@ -115,22 +116,27 @@ static int Open( vlc_object_t *p_this )
}
/* Initialize library */
p_intf
->
p_sys
->
p_osd
=
#if defined(HAVE_XOSD_VERSION_0) || defined(HAVE_XOSD_VERSION_1)
p_osd
=
p_intf
->
p_sys
->
p_osd
=
xosd_init
(
config_GetPsz
(
p_intf
,
"xosd-font"
),
config_GetPsz
(
p_intf
,
"xosd-colour"
),
3
,
XOSD_top
,
0
,
1
);
#else
xosd_init
(
config_GetPsz
(
p_intf
,
"xosd-font"
),
config_GetPsz
(
p_intf
,
"xosd-colour"
),
3
,
XOSD_top
,
0
,
0
,
1
);
#endif
if
(
p_intf
->
p_sys
->
p_osd
==
NULL
)
{
msg_Err
(
p_intf
,
"couldn't initialize libxosd"
);
return
VLC_EGENERIC
;
}
#else
p_osd
=
p_intf
->
p_sys
->
p_osd
=
xosd_create
(
1
);
if
(
p_osd
==
NULL
)
{
msg_Err
(
p_intf
,
"couldn't initialize libxosd"
);
return
VLC_EGENERIC
;
}
xosd_set_colour
(
p_osd
,
config_GetPsz
(
p_intf
,
"xosd-colour"
)
);
xosd_set_timeout
(
p_osd
,
3
);
#endif
playlist_t
*
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
...
...
@@ -165,10 +171,7 @@ static int Open( vlc_object_t *p_this )
XOSD_bottom:
XOSD_top
);
/* Initialize to NULL */
xosd_display
(
p_intf
->
p_sys
->
p_osd
,
0
,
XOSD_string
,
"xosd interface initialized"
);
xosd_display
(
p_osd
,
0
,
XOSD_string
,
"XOSD interface initialized"
);
p_intf
->
pf_run
=
Run
;
...
...
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