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
59a8278f
Commit
59a8278f
authored
Dec 02, 2015
by
Petri Hintukainen
Committed by
Jean-Baptiste Kempf
Dec 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: convert input_title_t.b_menu to flags
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
2f19e4f4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
11 deletions
+18
-11
include/vlc_input.h
include/vlc_input.h
+9
-4
lib/media_player.c
lib/media_player.c
+1
-1
modules/access/bluray.c
modules/access/bluray.c
+6
-4
modules/access/dvdnav.c
modules/access/dvdnav.c
+1
-1
modules/access/vcdx/access.c
modules/access/vcdx/access.c
+1
-1
No files found.
include/vlc_input.h
View file @
59a8278f
...
...
@@ -82,14 +82,19 @@ static inline seekpoint_t *vlc_seekpoint_Duplicate( const seekpoint_t *src )
/*****************************************************************************
* Title:
*****************************************************************************/
/* input_title_t.i_flags field */
#define INPUT_TITLE_MENU 0x0001
/* Menu title */
#define INPUT_TITLE_INTERACTIVE 0x0002
/* Interactive title. Playback position has no meaning. */
typedef
struct
input_title_t
{
char
*
psz_name
;
bool
b_menu
;
/* Is it a menu or a normal entry */
int64_t
i_length
;
/* Length(microsecond) if known, else 0 */
int
i_flags
;
/* Is it a menu or a normal entry */
/* Title seekpoint */
int
i_seekpoint
;
seekpoint_t
**
seekpoint
;
...
...
@@ -102,7 +107,7 @@ static inline input_title_t *vlc_input_title_New(void)
return
NULL
;
t
->
psz_name
=
NULL
;
t
->
b_menu
=
false
;
t
->
i_flags
=
0
;
t
->
i_length
=
0
;
t
->
i_seekpoint
=
0
;
t
->
seekpoint
=
NULL
;
...
...
@@ -129,7 +134,7 @@ static inline input_title_t *vlc_input_title_Duplicate( const input_title_t *t )
int
i
;
if
(
t
->
psz_name
)
dup
->
psz_name
=
strdup
(
t
->
psz_name
);
dup
->
b_menu
=
t
->
b_menu
;
dup
->
i_flags
=
t
->
i_flags
;
dup
->
i_length
=
t
->
i_length
;
if
(
t
->
i_seekpoint
>
0
)
{
...
...
lib/media_player.c
View file @
59a8278f
...
...
@@ -1476,7 +1476,7 @@ int libvlc_media_player_get_full_title_descriptions( libvlc_media_player_t *p_mi
/* we want to return milliseconds to match the rest of the API */
title
->
i_duration
=
p_input_title
[
i
]
->
i_length
/
1000
;
title
->
b_menu
=
p_input_title
[
i
]
->
b_menu
;
title
->
b_menu
=
p_input_title
[
i
]
->
i_flags
&
INPUT_TITLE_MENU
;
if
(
p_input_title
[
i
]
->
psz_name
)
title
->
psz_name
=
strdup
(
p_input_title
[
i
]
->
psz_name
);
else
...
...
modules/access/bluray.c
View file @
59a8278f
...
...
@@ -1453,11 +1453,11 @@ static void blurayInitTitles(demux_t *p_demux, int menu_titles)
}
else
if
(
i
==
0
)
{
t
->
psz_name
=
strdup
(
_
(
"Top Menu"
));
t
->
b_menu
=
true
;
t
->
i_flags
=
INPUT_TITLE_MENU
|
INPUT_TITLE_INTERACTIVE
;
}
else
if
(
i
==
i_title
-
1
)
{
t
->
psz_name
=
strdup
(
_
(
"First Play"
));
if
(
di
&&
di
->
first_play
)
{
t
->
b_menu
=
di
->
first_play
->
interactive
;
if
(
di
&&
di
->
first_play
&&
di
->
first_play
->
interactive
)
{
t
->
i_flags
=
INPUT_TITLE_INTERACTIVE
;
}
}
else
{
/* add possible title name from disc metadata */
...
...
@@ -1465,7 +1465,9 @@ static void blurayInitTitles(demux_t *p_demux, int menu_titles)
if
(
di
->
titles
[
i
]
->
name
)
{
t
->
psz_name
=
strdup
(
di
->
titles
[
i
]
->
name
);
}
t
->
b_menu
=
di
->
titles
[
i
]
->
interactive
;
if
(
di
->
titles
[
i
]
->
interactive
)
{
t
->
i_flags
=
INPUT_TITLE_INTERACTIVE
;
}
}
}
...
...
modules/access/dvdnav.c
View file @
59a8278f
...
...
@@ -1115,7 +1115,7 @@ static void DemuxTitles( demux_t *p_demux )
/* Menu */
t
=
vlc_input_title_New
();
t
->
b_menu
=
true
;
t
->
i_flags
=
INPUT_TITLE_MENU
|
INPUT_TITLE_INTERACTIVE
;
t
->
psz_name
=
strdup
(
"DVD Menu"
);
s
=
vlc_seekpoint_New
();
...
...
modules/access/vcdx/access.c
View file @
59a8278f
...
...
@@ -482,7 +482,7 @@ VCDLIDs( access_t * p_access )
/* Set up LIDs Navigation Menu */
t
=
vlc_input_title_New
();
t
->
b_menu
=
true
;
t
->
i_flags
=
INPUT_TITLE_MENU
;
t
->
psz_name
=
strdup
(
"LIDs"
);
for
(
i_lid
=
1
;
i_lid
<=
p_vcdplayer
->
i_lids
;
i_lid
++
)
...
...
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