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
1eba944c
Commit
1eba944c
authored
Aug 15, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluray: fix disappearing of overlays
parent
54227611
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
15 deletions
+13
-15
modules/access/bluray.c
modules/access/bluray.c
+13
-15
No files found.
modules/access/bluray.c
View file @
1eba944c
...
...
@@ -751,26 +751,20 @@ static void blurayCloseOverlay(demux_t *p_demux, int plane)
bluray_overlay_t
*
ov
=
p_sys
->
p_overlays
[
plane
];
if
(
ov
!=
NULL
)
{
vout_FlushSubpictureChannel
(
p_sys
->
p_vout
,
ov
->
p_pic
->
i_channel
);
if
(
p_sys
->
p_vout
)
vout_FlushSubpictureChannel
(
p_sys
->
p_vout
,
ov
->
p_pic
->
i_channel
);
blurayCleanOverlayStruct
(
ov
);
if
(
p_sys
->
current_overlay
==
plane
)
p_sys
->
current_overlay
=
-
1
;
}
p_sys
->
p_overlays
[
plane
]
=
NULL
;
}
static
void
blurayCloseAllOverlays
(
demux_t
*
p_demux
)
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
p_demux
->
p_sys
->
current_overlay
=
-
1
;
if
(
!
p_sys
->
p_vout
)
return
;
p_sys
->
p_overlays
[
plane
]
=
NULL
;
}
for
(
int
i
=
0
;
i
<
MAX_OVERLAY
;
i
++
)
blurayCloseOverlay
(
p_demux
,
i
);
if
(
p_sys
->
p_overlays
[
i
])
return
;
/* All overlays have been closed */
var_DelCallback
(
p_sys
->
p_vout
,
"mouse-moved"
,
onMouseEvent
,
p_demux
);
var_DelCallback
(
p_sys
->
p_vout
,
"mouse-clicked"
,
onMouseEvent
,
p_demux
);
vlc_object_release
(
p_sys
->
p_vout
);
...
...
@@ -941,10 +935,14 @@ static void blurayDrawOverlay(demux_t *p_demux, const BD_OVERLAY* const ov)
static
void
blurayOverlayProc
(
void
*
ptr
,
const
BD_OVERLAY
*
const
overlay
)
{
demux_t
*
p_demux
=
(
demux_t
*
)
ptr
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
if
(
!
overlay
)
{
msg_Info
(
p_demux
,
"Closing overlay."
);
blurayCloseAllOverlays
(
p_demux
);
msg_Info
(
p_demux
,
"Closing overlays."
);
p_sys
->
current_overlay
=
-
1
;
if
(
p_sys
->
p_vout
)
for
(
int
i
=
0
;
i
<
MAX_OVERLAY
;
i
++
)
blurayCloseOverlay
(
p_demux
,
i
);
return
;
}
...
...
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