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
e0e73f09
Commit
e0e73f09
authored
Jun 21, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
screen: fix mouse file location
parent
388b0b93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
modules/access/screen/screen.c
modules/access/screen/screen.c
+9
-7
No files found.
modules/access/screen/screen.c
View file @
e0e73f09
...
...
@@ -33,6 +33,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_modules.h>
/* module_need for "video blending" */
#include <vlc_url.h>
#include "screen.h"
/*****************************************************************************
...
...
@@ -209,13 +210,14 @@ static int Open( vlc_object_t *p_this )
#endif
#ifdef SCREEN_MOUSE
char
*
psz_mouse
=
var_CreateGetNonEmptyString
(
p_demux
,
"screen-mouse-image"
);
if
(
psz_mouse
)
char
*
mousefile
=
var_InheritString
(
p_demux
,
"screen-mouse-image"
);
char
*
mouseurl
=
mousefile
?
vlc_path2uri
(
mousefile
,
NULL
)
:
NULL
;
free
(
mousefile
);
if
(
mouseurl
)
{
image_handler_t
*
p_image
;
video_format_t
fmt_in
,
fmt_out
;
msg_Dbg
(
p_demux
,
"Using %s for the mouse pointer image"
,
psz_mouse
);
msg_Dbg
(
p_demux
,
"Using %s for the mouse pointer image"
,
mouseurl
);
memset
(
&
fmt_in
,
0
,
sizeof
(
fmt_in
)
);
memset
(
&
fmt_out
,
0
,
sizeof
(
fmt_out
)
);
fmt_out
.
i_chroma
=
VLC_CODEC_RGBA
;
...
...
@@ -223,13 +225,13 @@ static int Open( vlc_object_t *p_this )
if
(
p_image
)
{
p_sys
->
p_mouse
=
image_ReadUrl
(
p_image
,
psz_mouse
,
&
fmt_in
,
&
fmt_out
);
image_ReadUrl
(
p_image
,
mouseurl
,
&
fmt_in
,
&
fmt_out
);
image_HandlerDelete
(
p_image
);
}
if
(
!
p_sys
->
p_mouse
)
msg_Err
(
p_demux
,
"Failed to open mouse pointer image (%s)"
,
psz_mouse
);
free
(
psz_mouse
);
mouseurl
);
free
(
mouseurl
);
}
#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