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
360ad295
Commit
360ad295
authored
Aug 12, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluray: add blurayCloseOverlay
parent
a8526b78
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
9 deletions
+23
-9
modules/access/bluray.c
modules/access/bluray.c
+23
-9
No files found.
modules/access/bluray.c
View file @
360ad295
...
...
@@ -692,6 +692,21 @@ static void blurayCleanOverlayStruct(bluray_overlay_t *p_overlay)
free
(
p_overlay
);
}
static
void
blurayCloseOverlay
(
demux_t
*
p_demux
,
int
plane
)
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
bluray_overlay_t
*
ov
=
p_sys
->
p_overlays
[
plane
];
if
(
ov
!=
NULL
)
{
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
;
...
...
@@ -700,14 +715,9 @@ static void blurayCloseAllOverlays(demux_t *p_demux)
if
(
!
p_sys
->
p_vout
)
return
;
for
(
int
i
=
0
;
i
<
MAX_OVERLAY
;
i
++
)
{
if
(
p_sys
->
p_overlays
[
i
]
!=
NULL
)
{
vout_FlushSubpictureChannel
(
p_sys
->
p_vout
,
p_sys
->
p_overlays
[
i
]
->
p_pic
->
i_channel
);
blurayCleanOverlayStruct
(
p_sys
->
p_overlays
[
i
]);
p_sys
->
p_overlays
[
i
]
=
NULL
;
}
}
for
(
int
i
=
0
;
i
<
MAX_OVERLAY
;
i
++
)
blurayCloseOverlay
(
p_demux
,
i
);
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
);
...
...
@@ -890,6 +900,10 @@ static void blurayOverlayProc(void *ptr, const BD_OVERLAY *const overlay)
msg_Info
(
p_demux
,
"Initializing overlay"
);
blurayInitOverlay
(
p_demux
,
overlay
->
plane
,
overlay
->
w
,
overlay
->
h
);
break
;
case
BD_OVERLAY_CLOSE
:
blurayClearOverlay
(
p_demux
,
overlay
->
plane
);
blurayCloseOverlay
(
p_demux
,
overlay
->
plane
);
break
;
case
BD_OVERLAY_CLEAR
:
blurayClearOverlay
(
p_demux
,
overlay
->
plane
);
break
;
...
...
@@ -972,7 +986,7 @@ static void blurayArgbOverlayProc(void *ptr, const BD_ARGB_OVERLAY *const overla
break
;
case
BD_ARGB_OVERLAY_CLOSE
:
blurayClearOverlay
(
p_demux
,
overlay
->
plane
);
// TODO:
blurayCloseOverlay(p_demux, overlay->plane);
blurayCloseOverlay
(
p_demux
,
overlay
->
plane
);
break
;
case
BD_ARGB_OVERLAY_FLUSH
:
blurayActivateOverlay
(
p_demux
,
overlay
->
plane
);
...
...
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