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
a46bb698
Commit
a46bb698
authored
Aug 09, 2015
by
Petri Hintukainen
Committed by
Jean-Baptiste Kempf
Aug 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluray: Simplify code
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
2b29fe15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
modules/access/bluray.c
modules/access/bluray.c
+8
-11
No files found.
modules/access/bluray.c
View file @
a46bb698
...
@@ -1084,30 +1084,27 @@ static void blurayArgbOverlayProc(void *ptr, const BD_ARGB_OVERLAY *const overla
...
@@ -1084,30 +1084,27 @@ static void blurayArgbOverlayProc(void *ptr, const BD_ARGB_OVERLAY *const overla
}
}
}
}
static
void
bluraySendOverlayToVout
(
demux_t
*
p_demux
)
static
void
bluraySendOverlayToVout
(
demux_t
*
p_demux
,
bluray_overlay_t
*
p_ov
)
{
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
assert
(
p_sys
->
current_overlay
>=
0
&&
assert
(
p_ov
!=
NULL
&&
p_sys
->
p_overlays
[
p_sys
->
current_overlay
]
!=
NULL
&&
p_ov
->
p_pic
!=
NULL
);
p_sys
->
p_overlays
[
p_sys
->
current_overlay
]
->
p_pic
!=
NULL
);
p_sys
->
p_overlays
[
p_sys
->
current_overlay
]
->
p_pic
->
i_start
=
p_ov
->
p_pic
->
i_start
=
p_ov
->
p_pic
->
i_stop
=
mdate
();
p_sys
->
p_overlays
[
p_sys
->
current_overlay
]
->
p_pic
->
i_stop
=
mdate
();
p_ov
->
p_pic
->
i_channel
=
vout_RegisterSubpictureChannel
(
p_sys
->
p_vout
);
p_sys
->
p_overlays
[
p_sys
->
current_overlay
]
->
p_pic
->
i_channel
=
vout_RegisterSubpictureChannel
(
p_sys
->
p_vout
);
/*
/*
* After this point, the picture should not be accessed from the demux thread,
* After this point, the picture should not be accessed from the demux thread,
* as it is held by the vout thread.
* as it is held by the vout thread.
* This must be done only once per subpicture, ie. only once between each
* This must be done only once per subpicture, ie. only once between each
* blurayInitOverlay & blurayCloseOverlay call.
* blurayInitOverlay & blurayCloseOverlay call.
*/
*/
vout_PutSubpicture
(
p_sys
->
p_vout
,
p_
sys
->
p_overlays
[
p_sys
->
current_overlay
]
->
p_pic
);
vout_PutSubpicture
(
p_sys
->
p_vout
,
p_
ov
->
p_pic
);
/*
/*
* Mark the picture as Outdated, as it contains no region for now.
* Mark the picture as Outdated, as it contains no region for now.
* This will make the subpicture_updater_t call pf_update
* This will make the subpicture_updater_t call pf_update
*/
*/
p_
sys
->
p_overlays
[
p_sys
->
current_overlay
]
->
status
=
Outdated
;
p_
ov
->
status
=
Outdated
;
}
}
static
void
blurayUpdateTitleInfo
(
input_title_t
*
t
,
BLURAY_TITLE_INFO
*
title_info
)
static
void
blurayUpdateTitleInfo
(
input_title_t
*
t
,
BLURAY_TITLE_INFO
*
title_info
)
...
@@ -1663,7 +1660,7 @@ static int blurayDemux(demux_t *p_demux)
...
@@ -1663,7 +1660,7 @@ static int blurayDemux(demux_t *p_demux)
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-moved"
,
onMouseEvent
,
p_demux
);
var_AddCallback
(
p_sys
->
p_vout
,
"mouse-clicked"
,
onMouseEvent
,
p_demux
);
var_AddCallback
(
p_sys
->
p_vout
,
"mouse-clicked"
,
onMouseEvent
,
p_demux
);
bluraySendOverlayToVout
(
p_demux
);
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