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
dcc738d5
Commit
dcc738d5
authored
Dec 11, 2015
by
Petri Hintukainen
Committed by
Jean-Baptiste Kempf
Dec 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluray: register mouse callbacks only once
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
a559bee7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
modules/access/bluray.c
modules/access/bluray.c
+6
-3
No files found.
modules/access/bluray.c
View file @
dcc738d5
...
@@ -2083,8 +2083,13 @@ static void blurayHandleOverlays(demux_t *p_demux, int nread)
...
@@ -2083,8 +2083,13 @@ static void blurayHandleOverlays(demux_t *p_demux, int nread)
bool
display
=
ov
->
status
==
ToDisplay
;
bool
display
=
ov
->
status
==
ToDisplay
;
vlc_mutex_unlock
(
&
ov
->
lock
);
vlc_mutex_unlock
(
&
ov
->
lock
);
if
(
display
)
{
if
(
display
)
{
if
(
p_sys
->
p_vout
==
NULL
)
if
(
p_sys
->
p_vout
==
NULL
)
{
p_sys
->
p_vout
=
input_GetVout
(
p_demux
->
p_input
);
p_sys
->
p_vout
=
input_GetVout
(
p_demux
->
p_input
);
if
(
p_sys
->
p_vout
!=
NULL
)
{
var_AddCallback
(
p_sys
->
p_vout
,
"mouse-moved"
,
onMouseEvent
,
p_demux
);
var_AddCallback
(
p_sys
->
p_vout
,
"mouse-clicked"
,
onMouseEvent
,
p_demux
);
}
}
/* NOTE: we might want to enable background video always when there's no video stream playing.
/* NOTE: we might want to enable background video always when there's no video stream playing.
Now, with some discs, there are perioids (even seconds) during which the video window
Now, with some discs, there are perioids (even seconds) during which the video window
...
@@ -2101,8 +2106,6 @@ static void blurayHandleOverlays(demux_t *p_demux, int nread)
...
@@ -2101,8 +2106,6 @@ static void blurayHandleOverlays(demux_t *p_demux, int nread)
}
}
if
(
p_sys
->
p_vout
!=
NULL
)
{
if
(
p_sys
->
p_vout
!=
NULL
)
{
var_AddCallback
(
p_sys
->
p_vout
,
"mouse-moved"
,
onMouseEvent
,
p_demux
);
var_AddCallback
(
p_sys
->
p_vout
,
"mouse-clicked"
,
onMouseEvent
,
p_demux
);
bluraySendOverlayToVout
(
p_demux
,
ov
);
bluraySendOverlayToVout
(
p_demux
,
ov
);
}
}
}
}
...
...
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