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
00d3ae19
Commit
00d3ae19
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: both overlays can be active
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
a46bb698
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
modules/access/bluray.c
modules/access/bluray.c
+5
-9
No files found.
modules/access/bluray.c
View file @
00d3ae19
...
@@ -135,7 +135,6 @@ struct demux_sys_t
...
@@ -135,7 +135,6 @@ struct demux_sys_t
/* Menus */
/* Menus */
bluray_overlay_t
*
p_overlays
[
MAX_OVERLAY
];
bluray_overlay_t
*
p_overlays
[
MAX_OVERLAY
];
int
current_overlay
;
// -1 if no current overlay;
bool
b_menu
;
bool
b_menu
;
bool
b_menu_open
;
bool
b_menu_open
;
bool
b_popup_available
;
bool
b_popup_available
;
...
@@ -313,7 +312,6 @@ static int blurayOpen(vlc_object_t *object)
...
@@ -313,7 +312,6 @@ static int blurayOpen(vlc_object_t *object)
if
(
unlikely
(
!
p_sys
))
if
(
unlikely
(
!
p_sys
))
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
p_sys
->
current_overlay
=
-
1
;
p_sys
->
i_audio_stream
=
-
1
;
p_sys
->
i_audio_stream
=
-
1
;
p_sys
->
i_spu_stream
=
-
1
;
p_sys
->
i_spu_stream
=
-
1
;
p_sys
->
i_video_stream
=
-
1
;
p_sys
->
i_video_stream
=
-
1
;
...
@@ -778,9 +776,6 @@ static void blurayCloseOverlay(demux_t *p_demux, int plane)
...
@@ -778,9 +776,6 @@ static void blurayCloseOverlay(demux_t *p_demux, int plane)
if
(
p_sys
->
p_vout
)
if
(
p_sys
->
p_vout
)
vout_FlushSubpictureChannel
(
p_sys
->
p_vout
,
ov
->
p_pic
->
i_channel
);
vout_FlushSubpictureChannel
(
p_sys
->
p_vout
,
ov
->
p_pic
->
i_channel
);
blurayCleanOverlayStruct
(
ov
);
blurayCleanOverlayStruct
(
ov
);
if
(
p_sys
->
current_overlay
==
plane
)
p_sys
->
current_overlay
=
-
1
;
p_sys
->
p_overlays
[
plane
]
=
NULL
;
p_sys
->
p_overlays
[
plane
]
=
NULL
;
}
}
...
@@ -825,7 +820,6 @@ static void blurayActivateOverlay(demux_t *p_demux, int plane)
...
@@ -825,7 +820,6 @@ static void blurayActivateOverlay(demux_t *p_demux, int plane)
* the blurayDemuxMenu will send it to vout, as it may be unavailable when
* the blurayDemuxMenu will send it to vout, as it may be unavailable when
* the overlay is computed
* the overlay is computed
*/
*/
p_sys
->
current_overlay
=
plane
;
ov
->
status
=
ToDisplay
;
ov
->
status
=
ToDisplay
;
vlc_mutex_unlock
(
&
ov
->
lock
);
vlc_mutex_unlock
(
&
ov
->
lock
);
}
}
...
@@ -972,7 +966,6 @@ static void blurayOverlayProc(void *ptr, const BD_OVERLAY *const overlay)
...
@@ -972,7 +966,6 @@ static void blurayOverlayProc(void *ptr, const BD_OVERLAY *const overlay)
if
(
!
overlay
)
{
if
(
!
overlay
)
{
msg_Info
(
p_demux
,
"Closing overlays."
);
msg_Info
(
p_demux
,
"Closing overlays."
);
p_sys
->
current_overlay
=
-
1
;
if
(
p_sys
->
p_vout
)
if
(
p_sys
->
p_vout
)
for
(
int
i
=
0
;
i
<
MAX_OVERLAY
;
i
++
)
for
(
int
i
=
0
;
i
<
MAX_OVERLAY
;
i
++
)
blurayCloseOverlay
(
p_demux
,
i
);
blurayCloseOverlay
(
p_demux
,
i
);
...
@@ -1649,8 +1642,11 @@ static int blurayDemux(demux_t *p_demux)
...
@@ -1649,8 +1642,11 @@ static int blurayDemux(demux_t *p_demux)
}
}
}
}
if
(
p_sys
->
current_overlay
!=
-
1
)
{
for
(
int
i
=
0
;
i
<
MAX_OVERLAY
;
i
++
)
{
bluray_overlay_t
*
ov
=
p_sys
->
p_overlays
[
p_sys
->
current_overlay
];
bluray_overlay_t
*
ov
=
p_sys
->
p_overlays
[
i
];
if
(
!
ov
)
{
continue
;
}
vlc_mutex_lock
(
&
ov
->
lock
);
vlc_mutex_lock
(
&
ov
->
lock
);
bool
display
=
ov
->
status
==
ToDisplay
;
bool
display
=
ov
->
status
==
ToDisplay
;
vlc_mutex_unlock
(
&
ov
->
lock
);
vlc_mutex_unlock
(
&
ov
->
lock
);
...
...
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